/* =========================================================
   Plomeros D.L.C. — estilos
   Mobile-first. Paleta:
   - Azul oscuro  #12304A  confianza / estructura
   - Azul agua    #12AFC0  agua / frescura (acentos)
   - Blanco       #FFFFFF  limpieza
   - Naranja      #F59E0B  SOLO llamadas a la acción
   ========================================================= */

:root {
  --navy: #12304A;
  --navy-900: #0B2032;
  --navy-700: #1B4466;
  --aqua: #12AFC0;
  --aqua-700: #0B7F8C; /* versión accesible para texto sobre blanco */
  --aqua-50: #E9F8FA;
  --white: #FFFFFF;
  --orange: #F59E0B;
  --orange-600: #DB8A06;
  --wa: #128C43;      /* verde WhatsApp con contraste AA para texto blanco */
  --wa-hover: #0E7537;
  --ink: #12304A;
  --muted: #4A6175;
  --line: #DCE7EE;
  --bg-soft: #F4F8FB;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 6px rgba(18, 48, 74, .06);
  --shadow: 0 14px 40px -16px rgba(18, 48, 74, .28);
  --header-h: 68px;
  --mobile-bar-h: 64px;
  --ease: cubic-bezier(.22, .8, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  /* Espacio para la barra fija móvil, así no tapa el contenido */
  padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
}

img { max-width: 63%; display: block; height: auto; margin-left: 37%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: .75rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.5rem;
  border-radius: 999px; border: 0;
  font: 700 1.0625rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-wa { background: var(--wa); color: var(--white); box-shadow: 0 10px 24px -10px rgba(18, 140, 67, .7); }
.btn-wa:hover { background: var(--wa-hover); box-shadow: 0 14px 28px -10px rgba(18, 140, 67, .8); }

.btn-call { background: var(--orange); color: var(--navy-900); box-shadow: 0 10px 24px -10px rgba(245, 158, 11, .75); }
.btn-call:hover { background: #FBB12E; }

.btn-sm { min-height: 44px; padding: .55rem 1rem; font-size: .975rem; }
.btn-lg { min-height: 58px; padding: 1rem 1.6rem; font-size: 1.125rem; }
.btn-xl { min-height: 64px; padding: 1.1rem 2rem; font-size: 1.1875rem; }
.btn-block { width: 100%; }
.btn-num { font-weight: 800; white-space: nowrap; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1; color: var(--navy); }
.brand-name strong { color: var(--aqua-700); font-weight: 800; }
.brand-badge {
  align-self: flex-start;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--navy-900); background: var(--orange);
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}

.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-actions .btn-sm span { display: none; }
.header-actions .btn-sm { padding: .55rem .8rem; }

.nav-toggle {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); display: grid; place-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
.main-nav ul { padding: .5rem 1.25rem 1rem; }
.main-nav a {
  display: block; padding: .9rem .25rem; font-weight: 600; font-size: 1.1rem;
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.main-nav li:last-child a { border-bottom: 0; }
.main-nav a.is-active { color: var(--aqua-700); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(760px, calc(100svh - var(--header-h)));
  display: flex; align-items: center;
  color: var(--white); background: var(--navy);
  padding: 4.5rem 0 6rem;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  object-fit: cover; object-position: 68% center;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 32, 50, .82) 0%, rgba(18, 48, 74, .88) 60%, rgba(18, 48, 74, .95) 100%);
}
.hero-content { max-width: 1180px; }
.hero h1 { font-size: clamp(2.25rem, 8vw, 4.1rem); font-weight: 800; max-width: 15ch; margin: .9rem 0 1.1rem; }
.accent-text { color: var(--aqua); }
.hero-sub { font-size: clamp(1.05rem, 2.6vw, 1.25rem); max-width: 56ch; color: rgba(255, 255, 255, .9); }

.hero-ctas { display: flex; flex-direction: column; gap: .8rem; margin-top: 2rem; max-width: 460px; }

.hero-indicators { display: grid; gap: .65rem; margin-top: 2.25rem; max-width: 760px; }
.hero-indicators li {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1rem; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 1rem;
}
.ind-icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(18, 175, 192, .2); color: var(--aqua);
}

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; }

/* ---------- Secciones genéricas ---------- */
.section { padding: 4.5rem 0; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section h2 { font-size: clamp(1.9rem, 5.5vw, 2.9rem); font-weight: 800; color: var(--navy); }
.lead { margin-top: 1rem; font-size: 1.125rem; color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--aqua-700); margin-bottom: .8rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--aqua); border-radius: 2px; }
.eyebrow-light { color: var(--aqua); margin-bottom: 0; }
.eyebrow-light::before { display: none; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(18, 175, 192, .25); }

/* ---------- Servicios ---------- */
.services-grid { display: grid; gap: 1.1rem; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  padding: 1.6rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card::after {
  content: ""; position: absolute; left: 1.6rem; right: 1.6rem; top: 0; height: 3px;
  background: var(--aqua); border-radius: 0 0 3px 3px; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--aqua-50); color: var(--aqua-700); margin-bottom: 1.1rem;
  transition: background-color .3s, color .3s;
}
.service-icon .icon { width: 28px; height: 28px; }
.service-card:hover .service-icon { background: var(--navy); color: var(--aqua); }
.service-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.service-card p { margin-top: .6rem; color: var(--muted); flex-grow: 1; }

.service-link {
  display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
  margin-top: 1.25rem; min-height: 44px; padding: .5rem 1rem; border-radius: 999px;
  font-weight: 700; font-size: .98rem; text-decoration: none;
  color: var(--wa); background: rgba(18, 140, 67, .08);
  transition: background-color .2s, color .2s;
}
.service-link:hover { background: var(--wa); color: var(--white); }

/* ---------- Nosotros ---------- */
.about { background: var(--bg-soft); position: relative; overflow: hidden; }
.about-grid { display: grid; gap: 3rem; align-items: center; }

.about-visual { position: relative; padding: 0 0 2.5rem; max-width: 520px; }
.about-photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 4.4; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.big-number {
  position: absolute; right: -.25rem; bottom: 0;
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.4rem 1rem 1.2rem; border-radius: 20px;
  background: var(--navy); color: var(--white);
  box-shadow: 0 20px 40px -18px rgba(11, 32, 50, .7);
}
.big-number .num {
  font-family: var(--font-display); font-weight: 800; line-height: .85;
  font-size: clamp(4.5rem, 18vw, 7.5rem); letter-spacing: -.05em;
  background: linear-gradient(180deg, #fff 30%, var(--aqua) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.big-number .num-label { font-weight: 700; font-size: 1rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .06em; color: var(--aqua); }

.benefits { display: grid; gap: 1rem; margin-top: 2rem; }
.benefits li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.15rem; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.benefits li:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.benefit-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: var(--aqua); flex-shrink: 0; }
.benefits h3 { font-size: 1.12rem; font-weight: 700; color: var(--navy); }
.benefits p { margin-top: .25rem; color: var(--muted); font-size: 1rem; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 50% 0%, var(--navy-700) 0%, var(--navy) 45%, var(--navy-900) 100%);
  color: var(--white); padding: 5rem 0; text-align: center;
  border-top: 4px solid var(--aqua);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-band h2 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; max-width: 18ch; }
.aqua-text { color: var(--aqua); }
.cta-band p { margin: 1rem 0 2rem; font-size: 1.15rem; max-width: 48ch; color: rgba(255, 255, 255, .88); }

.cta-ripples { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-ripples span {
  position: absolute; left: 50%; top: 100%; width: 300px; height: 300px; margin: -150px 0 0 -150px;
  border: 1.5px solid rgba(18, 175, 192, .35); border-radius: 50%;
  animation: ripple 9s linear infinite;
}
.cta-ripples span:nth-child(2) { animation-delay: 3s; }
.cta-ripples span:nth-child(3) { animation-delay: 6s; }
@keyframes ripple {
  from { transform: scale(.4); opacity: 1; }
  to { transform: scale(5); opacity: 0; }
}

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 2.25rem; align-items: center; }
.contact-number { margin-top: 1.75rem; display: flex; flex-direction: column; gap: .2rem; }
.contact-number .label { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-number a { font-family: var(--font-display); font-size: clamp(1.7rem, 6vw, 2.3rem); font-weight: 800; color: var(--navy); text-decoration: none; }
.contact-number a:hover { color: var(--aqua-700); }

.contact-card {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.5rem; border-radius: 24px;
  background: linear-gradient(160deg, var(--aqua-50), var(--white) 60%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.contact-hint { font-size: .95rem; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .82); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--white); }
.footer-name strong { color: var(--aqua); }
.footer-tag { margin-top: .35rem; }
.footer-title { font-weight: 700; color: var(--white); margin-bottom: .75rem; text-transform: uppercase; font-size: .82rem; letter-spacing: .12em; }
.site-footer ul { display: grid; gap: .25rem; }
.site-footer ul a { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; text-decoration: none; transition: color .2s; }
.site-footer ul a:hover { color: var(--aqua); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .92rem; color: rgba(255, 255, 255, .65); }

/* ---------- Barra fija móvil ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px -10px rgba(18, 48, 74, .3);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  height: 48px; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 1.02rem;
}
.mb-wa { background: var(--wa); color: var(--white); }
.mb-call { background: var(--orange); color: var(--navy-900); }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.services-grid .reveal:nth-child(2) { transition-delay: .06s; }
.services-grid .reveal:nth-child(3) { transition-delay: .12s; }
.services-grid .reveal:nth-child(5) { transition-delay: .06s; }
.services-grid .reveal:nth-child(6) { transition-delay: .12s; }

.hero-content > * { animation: rise .8s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .08s; }
.hero-content > :nth-child(3) { animation-delay: .16s; }
.hero-content > :nth-child(4) { animation-delay: .24s; }
.hero-content > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Tabletas
   ========================================================= */
@media (min-width: 640px) {
  .header-actions .btn-sm span { display: inline; }
  .header-actions .btn-sm { padding: .55rem 1.1rem; }
  .hero-ctas { flex-direction: row; flex-wrap: wrap; max-width: none; }
  .hero-indicators { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .contact-card { padding: 2rem; }
}

/* =========================================================
   Escritorio
   ========================================================= */
@media (min-width: 960px) {
  :root { --header-h: 80px; }
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }

  .nav-toggle { display: none; }
  .main-nav {
    position: static; visibility: visible; opacity: 1; transform: none;
    background: none; border: 0; box-shadow: none;
  }
  .main-nav ul { display: flex; gap: .25rem; padding: 0; }
  .main-nav a {
    position: relative; padding: .5rem .9rem; font-size: 1rem; border: 0; border-radius: 999px;
    transition: color .2s, background-color .2s;
  }
  .main-nav a:hover { background: var(--aqua-50); color: var(--aqua-700); }
  .main-nav a.is-active { color: var(--navy); background: var(--aqua-50); }

  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 1.3rem; }

  .hero { padding: 6rem 0 8rem; }
  .hero-img { object-position: center; }
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(11, 32, 50, .96) 0%, rgba(18, 48, 74, .9) 38%, rgba(18, 48, 74, .45) 62%, rgba(18, 48, 74, .1) 100%);
  }
  .hero-sub { max-width: 46ch; }
  .hero-indicators { max-width: 720px; }
  .hero-wave { height: 80px; }

  .section { padding: 6.5rem 0; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .service-card { padding: 2rem; }

  .about-grid { grid-template-columns: 1fr 1.05fr; gap: 5rem; }
  .big-number { right: -2rem; }

  .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .contact-card { padding: 2.5rem; }
}


/* ---------- Botón de video con identidad visual Plomeros D.L.C. ---------- */
.service-video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  align-self: flex-start;
  min-height: 50px;
  margin-top: .75rem;
  padding: .45rem 1.1rem .45rem .5rem;
  border: 1px solid rgba(18, 175, 192, .42);
  border-radius: 999px;
  background: linear-gradient(115deg, #e8f8fa 0%, #fff 80%);
  color: var(--navy);
  font: 800 .95rem/1.2 var(--font-body);
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(18, 48, 74, .09), inset 0 1px 0 rgba(255,255,255,.95);
  transition: color .25s ease, background .25s ease, border-color .25s ease,
    box-shadow .25s ease, transform .25s ease;
}
.service-video-btn::after {
  content: "VER EN ACCIÓN";
  padding: .28rem .45rem;
  border-radius: 999px;
  background: rgba(18, 175, 192, .12);
  color: var(--aqua-700, #087e8b);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease;
}
.service-video-btn span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding-left: 2px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--aqua), #0b7f8c);
  color: #fff;
  font-size: .82rem;
  box-shadow: 0 4px 10px rgba(11, 127, 140, .28);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.service-video-btn:hover,
.service-video-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--navy);
  background: linear-gradient(110deg, var(--navy) 0%, #1b4466 100%);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(18, 48, 74, .65);
}
.service-video-btn:hover::after,
.service-video-btn:focus-visible::after {
  background: rgba(18, 175, 192, .2);
  color: #7beaf2;
}
.service-video-btn:hover span,
.service-video-btn:focus-visible span {
  transform: scale(1.08);
  background: var(--orange, #f59e0b);
  color: var(--navy-900, #102b42);
  box-shadow: 0 4px 12px rgba(245, 158, 11, .3);
}
.service-video-btn:focus-visible { outline: 3px solid rgba(18, 175, 192, .35); outline-offset: 3px; }
.service-video-btn:active { transform: translateY(0) scale(.98); }
@media (max-width: 480px) {
  .service-video-btn { gap: .5rem; padding-right: .8rem; font-size: .9rem; }
  .service-video-btn::after { font-size: .53rem; }
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.video-modal.is-open { display: flex; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 17, 27, .84);
}
.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  padding: 2.5rem .75rem .75rem;
  border-radius: 16px;
  background: #081a28;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}
.video-modal-close {
  position: absolute;
  top: .35rem;
  right: .6rem;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: white;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.video-modal-close:hover { background: rgba(255,255,255,.22); }
.video-frame-wrap { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 10px; background: #000; }
.video-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
body.video-modal-open { overflow: hidden; }

@media (max-width: 480px) {
  .video-modal { padding: .5rem; }
  .video-modal-dialog { padding: 2.4rem .4rem .4rem; }
}

.about-photo img.img-secundaria {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-left: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
}

/* Biblioteca de videos locales: selector con apariencia de carpeta */
.local-video-dialog {
  width: min(680px, 100%);
  max-height: min(86vh, 820px);
  overflow-y: auto;
  padding: 2rem;
}
.local-video-dialog h2 { margin: .25rem 0 .5rem; color: var(--navy, #08284b); }
.video-modal-intro { margin: 0 0 1.25rem; color: #52677b; }
.video-library-list { display: grid; gap: .7rem; }
.video-file-item {
  display: flex; align-items: center; gap: .9rem; width: 100%;
  padding: 1rem; border: 1px solid #dce7ed; border-radius: 14px;
  background: #f8fbfc; color: #0b2949; text-align: left; cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.video-file-item:hover, .video-file-item:focus-visible {
  border-color: #12a4b4; background: #eefbfc; transform: translateY(-1px);
}
.video-file-icon {
  display: grid; place-items: center; flex: 0 0 44px; height: 44px;
  border-radius: 12px; background: #dff5f7; color: #07899a; font-size: 1.1rem;
}
.video-file-copy { display: grid; gap: .25rem; min-width: 0; }
.video-file-copy strong { font-size: .98rem; }
.video-file-copy small { color: #617487; font-size: .8rem; }
.video-file-open { margin-left: auto; color: #07899a; font-weight: 700; white-space: nowrap; }
.video-back-btn {
  margin: 0 0 1rem; padding: .55rem .8rem; border: 1px solid #dce7ed;
  border-radius: 999px; background: #fff; color: #0b2949; cursor: pointer;
}
#selected-video-title { margin: 0 0 1rem; color: #0b2949; }
#local-video-player { display: block; width: 100%; max-height: 65vh; background: #000; }
.local-video-dialog [hidden] { display: none !important; }
@media (max-width: 600px) {
  .local-video-dialog { padding: 2.5rem 1rem 1rem; }
  .video-file-item { gap: .65rem; padding: .8rem; }
  .video-file-icon { flex-basis: 38px; height: 38px; }
  .video-file-copy strong { font-size: .9rem; }
}
