/*
  J&J y Asociados - Styles
  Fonts: Merriweather (titles), Inter (text)
  Colors: Deep navy and light beige; dark mode supported
*/

:root{
  --brand-blue: #0f2745; /* deep navy */
  --brand-beige: #efe7d6; /* light beige */
  --accent: #b79b6f; /* elegant gold-beige */
  --bg: #ffffff;
  --bg-alt: #f7f5ef;
  --text: #1b1f24;
  --muted: #5b636e;
  --card: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 10px 24px rgba(9, 20, 45, .08);
}

html[data-theme="dark"]{
  --bg: #0c1624;
  --bg-alt: #0a1320;
  --text: #e7eaf0;
  --muted: #b7c0cc;
  --card: #182a44;
  --border: #243149;
  --shadow: 0 10px 24px rgba(0,0,0,.4);
}

/* Reset / base */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol";
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--brand-blue);text-decoration:none}
a:hover{text-decoration:underline}

h1,h2,h3{font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;line-height:1.25;margin:0 0 .5rem}
h1{font-size:clamp(1.8rem, 2.5vw + 1.2rem, 3rem)}
h2{font-size:clamp(1.5rem, 1.5vw + 1rem, 2.2rem)}
h3{font-size:clamp(1.1rem, 1.2vw + .8rem, 1.4rem)}

.container{width:min(1100px, 92%);margin-inline:auto}
.section{padding: clamp(2.5rem, 6vw, 5rem) 0}
.section.alt{background:var(--bg-alt)}

/* Skip link */
.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:1rem;top:1rem;width:auto;height:auto;background:#fff;color:#000;padding:.5rem .75rem;border-radius:.375rem;box-shadow:var(--shadow)}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:var(--bg);border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 0}
.brand{display:flex;align-items:center;gap:.6rem;color:inherit;text-decoration:none}
.brand-name{font-family:'Merriweather', serif;font-weight:700;white-space:nowrap}
.site-nav .menu{display:flex;gap:1rem;list-style:none;margin:0;padding:0}
.site-nav a{color:inherit;font-weight:500;position:relative;transition:color .2s}
.site-nav .menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  width: 0;
  transition: width .3s cubic-bezier(.4,0,.2,1);
}
.site-nav .menu a:hover::after,
.site-nav .menu a:focus-visible::after {
  width: 100%;
}
.site-nav .menu a:hover,
.site-nav .menu a:focus-visible {
  color: var(--accent);
}
.header-actions{display:flex;gap:.6rem;align-items:center}

.nav-toggle{display:none;background:transparent;border:1px solid var(--border);padding:.4rem .5rem;border-radius:.5rem}
.nav-toggle span{display:block;width:22px;height:2px;background:var(--text);margin:4px 0;transition:all .3s cubic-bezier(.4,0,.2,1)}
.nav-toggle.open span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.nav-toggle.open span:nth-child(2){opacity:0}
.nav-toggle.open span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* Theme toggle */
.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  background:transparent;
  border:1px solid var(--border);
  border-radius:.5rem;
  cursor:pointer;
  transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position:relative;
  padding:0;
}
.theme-toggle:hover{
  background:var(--bg-alt);
  border-color:var(--accent);
  transform:translateY(-2px);
}
.theme-toggle:active{
  transform:translateY(0);
}
.theme-toggle svg{
  position:absolute;
  transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sun-icon{
  opacity:1;
  transform:rotate(0deg) scale(1);
}
.moon-icon{
  opacity:0;
  transform:rotate(90deg) scale(0);
}
html[data-theme="dark"] .sun-icon{
  opacity:0;
  transform:rotate(-90deg) scale(0);
}
html[data-theme="dark"] .moon-icon{
  opacity:1;
  transform:rotate(0deg) scale(1);
  color:var(--accent);
}

@media (max-width: 880px){
  .header-inner{flex-wrap:wrap}
  .brand{order:0}
  .header-actions{order:1}
  .site-nav{order:2}
  .site-nav .menu{position:absolute;inset:56px 0 auto 0;background:var(--bg);border-bottom:1px solid var(--border);flex-direction:column;padding:1rem 5%;display:none}
  .site-nav .menu.open{display:flex}
  .nav-toggle{display:inline-block}
}

/* Hero */
.hero{
  position:relative;
  background-image:
    linear-gradient(
      135deg,
      rgba(15, 39, 69, 0.92) 0%,
      rgba(15, 39, 69, 0.85) 40%,
      rgba(15, 39, 69, 0.75) 70%,
      rgba(15, 39, 69, 0.88) 100%
    ),
    url('../img/Estudio.png');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:fixed;
  min-height:clamp(500px, 70vh, 700px);
  display:flex;
  align-items:center;
}
.hero::before{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(
    ellipse at center,
    rgba(15, 39, 69, 0.3) 0%,
    rgba(15, 39, 69, 0.7) 100%
  );
  pointer-events:none;
}
html[data-theme="dark"] .hero{
  background-image:
    linear-gradient(
      135deg,
      rgba(12, 22, 36, 0.95) 0%,
      rgba(12, 22, 36, 0.88) 40%,
      rgba(12, 22, 36, 0.80) 70%,
      rgba(12, 22, 36, 0.92) 100%
    ),
    url('../img/Estudio.png');
}
.hero-inner{
  position:relative;
  z-index:1;
  display:grid;
  place-items:center;
  text-align:center;
  gap:1.5rem;
  padding:3rem 0;
}
.hero-logo{
  filter:drop-shadow(0 12px 28px rgba(0,0,0,.4)) brightness(1.1);
  animation:fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes fadeInScale{
  0%{opacity:0;transform:scale(0.9)}
  100%{opacity:1;transform:scale(1)}
}
.hero-title{
  color:#ffffff;
  text-shadow:0 4px 12px rgba(0,0,0,.5), 0 2px 4px rgba(0,0,0,.3);
  animation:fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}
.hero-subtitle{
  color:rgba(255,255,255,0.95);
  text-shadow:0 2px 8px rgba(0,0,0,.4);
  font-size:clamp(1rem, 1.2vw + 0.8rem, 1.25rem);
  max-width:600px;
  animation:fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
}
.hero-cta{
  animation:fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s backwards;
}
@keyframes fadeInUp{
  0%{opacity:0;transform:translateY(20px)}
  100%{opacity:1;transform:translateY(0)}
}
html[data-theme="dark"] .hero-title{
  color:#ffffff;
  text-shadow:0 4px 16px rgba(0,0,0,.7), 0 2px 6px rgba(0,0,0,.5);
}
html[data-theme="dark"] .hero-logo{
  filter:drop-shadow(0 12px 32px rgba(0,0,0,.6)) brightness(1.15);
}
html[data-theme="dark"] .hero-subtitle{
  color:rgba(255,255,255,0.92);
}
@media (max-width: 768px){
  .hero{
    background-attachment:scroll;
    min-height:clamp(450px, 60vh, 600px);
  }
}
@media (prefers-reduced-motion: reduce){
  .hero{background-attachment:scroll}
  .hero-logo, .hero-title, .hero-subtitle, .hero-cta{animation:none}
}

/* About */
.split{display:grid;grid-template-columns:1.1fr .9fr;gap:2rem;align-items:center}
.split > div > p{margin:0 0 1.2rem 0;text-align:justify;line-height:1.7}
.about-card{
  height:280px;
  border-radius:16px;
  box-shadow:var(--shadow);
  overflow:hidden;
  position:relative;
  background:linear-gradient(135deg, rgba(15, 39, 69, 0.25), rgba(31, 61, 107, 0.25));
}
.about-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:contrast(1.05) saturate(1.05);
}
@media (max-width: 900px){.split{grid-template-columns:1fr}.about-card{order:-1;height:160px}}

/* Services */
.services-intro{
  display:flex;
  justify-content:center;
  margin-bottom:2rem;
}
.services-image{
  width:100%;
  max-width:400px;
  height:auto;
  border-radius:16px;
  box-shadow:var(--shadow);
  object-fit:cover;
  transition:transform .3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.services-image:hover{
  transform:scale(1.02);
  box-shadow:0 20px 40px rgba(9, 20, 45, .15);
}
html[data-theme="dark"] .services-image:hover{
  box-shadow:0 20px 40px rgba(0, 0, 0, .6);
}
@media (max-width: 600px){
  .services-image{
    max-width:100%;
  }
}
.services-section-subtitle{
  font-size:clamp(1.3rem, 1.4vw + 1rem, 1.6rem);
  font-weight:700;
  color:var(--brand-blue);
  margin:2.5rem 0 1.5rem 0;
  text-align:center;
  letter-spacing:-0.01em;
  position:relative;
  padding-bottom:.75rem;
}
.services-section-subtitle::after{
  content:'';
  position:absolute;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:80px;
  height:3px;
  background:linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius:2px;
}
html[data-theme="dark"] .services-section-subtitle{
  color:var(--text);
}

/* Professional Profile */
.professional-profile{
  display:grid;
  grid-template-columns:400px 1fr;
  gap:2.5rem;
  align-items:start;
  margin:2.5rem 0;
  padding:2rem;
  background:var(--card);
  border-radius:16px;
  box-shadow:var(--shadow);
  border:1px solid var(--border);
}
.profile-image-wrapper{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:1.5rem;
}
.profile-image{
  width:100%;
  height:auto;
  border-radius:12px;
  box-shadow:0 8px 20px rgba(9, 20, 45, .12);
  transition:transform .3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .3s ease;
}
.profile-image:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 28px rgba(9, 20, 45, .18);
}
html[data-theme="dark"] .profile-image{
  box-shadow:0 8px 20px rgba(0, 0, 0, .4);
}
html[data-theme="dark"] .profile-image:hover{
  box-shadow:0 12px 28px rgba(0, 0, 0, .6);
}
.profile-content{
  display:flex;
  flex-direction:column;
  gap:1.5rem;
  text-align:justify;
}
.profile-intro{
  font-size:clamp(1rem, 1vw + 0.85rem, 1.1rem);
  line-height:1.7;
  color:var(--text);
  margin:0;
  
}
.profile-intro strong{
  color:var(--brand-blue);
  font-weight:600;
}
html[data-theme="dark"] .profile-intro strong{
  color:var(--accent);
}
.profile-subtitle{
  font-size:clamp(1.2rem, 1.2vw + 0.9rem, 1.4rem);
  font-weight:700;
  color:var(--brand-blue);
  margin:0 0 1rem 0;
  letter-spacing:-0.01em;
  position:relative;
  padding-bottom:.5rem;
}
.profile-subtitle::after{
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:60px;
  height:3px;
  background:linear-gradient(90deg, var(--accent), transparent);
  border-radius:2px;
}
html[data-theme="dark"] .profile-subtitle{
  color:var(--text);
}
.profile-specialties{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.profile-specialties li{
  display:flex;
  align-items:start;
  gap:1rem;
  padding:1rem;
  background:var(--bg-alt);
  border-radius:10px;
  border-left:3px solid var(--accent);
  transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.profile-specialties li:hover{
  transform:translateX(5px);
  border-left-color:var(--brand-blue);
  box-shadow:0 4px 12px rgba(9, 20, 45, .08);
}
html[data-theme="dark"] .profile-specialties li:hover{
  box-shadow:0 4px 12px rgba(0, 0, 0, .3);
}
.specialty-icon{
  font-size:1.5rem;
  flex-shrink:0;
  line-height:1;
  filter:grayscale(0.2);
  transition:transform .3s ease;
}
.profile-specialties li:hover .specialty-icon{
  transform:scale(1.15);
  filter:grayscale(0);
}
.specialty-content{
  flex:1;
  font-size:clamp(0.9rem, 0.95vw + 0.8rem, 1rem);
  line-height:1.6;
  color:var(--text);
}
.specialty-content strong{
  color:var(--brand-blue);
  display:block;
  margin-bottom:.25rem;
}
html[data-theme="dark"] .specialty-content strong{
  color:var(--accent);
}
.profile-commitment{
  padding:1.5rem;
  background:linear-gradient(135deg, rgba(15, 39, 69, 0.03), rgba(183, 155, 111, 0.03));
  border-radius:12px;
  border:1px solid var(--border);
  box-shadow:0 8px 20px rgba(9, 20, 45, .08);
}
html[data-theme="dark"] .profile-commitment{
  background:linear-gradient(135deg, rgba(183, 155, 111, 0.05), rgba(15, 39, 69, 0.05));
}
.profile-commitment p{
  margin:.5rem 0 0 0;
  line-height:1.7;
  color:var(--text);
  font-size:clamp(0.95rem, 1vw + 0.8rem, 1.05rem);
  text-align:justify;
}
/* Control de visibilidad de "Mi Compromiso" según dispositivo */
.profile-commitment-mobile{
  display:none;
}
@media (max-width: 1024px){
  .professional-profile{
    grid-template-columns:1fr;
    gap:2rem;
  }
  .profile-image-wrapper{
    max-width:400px;
    margin:0 auto;
  }
  /* En móviles: ocultar versión de escritorio y mostrar versión móvil */
  .profile-commitment-desktop{
    display:none;
  }
  .profile-commitment-mobile{
    display:block;
  }
}
@media (max-width: 600px){
  .professional-profile{
    padding:1.5rem;
  }
  .profile-specialties li{
    flex-direction:column;
    gap:.5rem;
  }
  .specialty-icon{
    font-size:1.8rem;
  }
}

.grid-2{display:grid;grid-template-columns:repeat(2, 1fr);gap:1rem}
@media (max-width: 820px){.grid-2{grid-template-columns:1fr}}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:1.25rem;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
  transition:transform .3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .3s cubic-bezier(0.4, 0, 0.2, 1), border-color .3s ease;
  opacity:1;
  transform:translateY(0);
}
.card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:3px;
  background:linear-gradient(90deg, var(--brand-blue), var(--accent), var(--brand-blue));
  background-size:200% 100%;
  opacity:0;
  transition:opacity .3s ease;
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 40px rgba(9, 20, 45, .12);
  border-color:var(--accent);
}
html[data-theme="dark"] .card:hover{
  box-shadow:0 20px 40px rgba(0, 0, 0, .6);
}
.card:hover::before{
  opacity:1;
  animation:shimmer 2s linear infinite;
}
@keyframes shimmer{
  0%{background-position:200% 0}
  100%{background-position:-200% 0}
}
.card h3{
  margin-bottom:.75rem;
  color:var(--brand-blue);
  transition:color .3s ease;
  font-size:clamp(1.15rem, 1.3vw + 0.8rem, 1.5rem);
  font-weight:700;
  letter-spacing:-0.02em;
  line-height:1.3;
}
html[data-theme="dark"] .card h3{color:var(--text)}
.card:hover h3{color:var(--accent)}
.card ul{
  margin:1rem 0 0 0;
  padding:0;
  list-style:none;
}
.card li{
  position:relative;
  margin:.5rem 0;
  padding-left:1.75rem;
  line-height:1.6;
  color:var(--text);
  font-size:clamp(0.9rem, 0.95vw + 0.75rem, 1rem);
  transition:color .2s ease, transform .2s ease;
}
.card li::before{
  content:'';
  position:absolute;
  left:0;
  top:0.45em;
  width:10px;
  height:10px;
  background:var(--accent);
  border-radius:2px;
  transform:rotate(45deg);
  transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:0 2px 4px rgba(183, 155, 111, 0.3);
}
.card:hover li::before{
  background:var(--brand-blue);
  transform:rotate(45deg) scale(1.1);
  box-shadow:0 3px 6px rgba(15, 39, 69, 0.4);
}
html[data-theme="dark"] .card:hover li::before{
  box-shadow:0 3px 6px rgba(183, 155, 111, 0.5);
}
.card li:hover{
  color:var(--brand-blue);
  transform:translateX(3px);
}
html[data-theme="dark"] .card li:hover{
  color:var(--accent);
}
.card p{
  line-height:1.7;
  color:var(--muted);
  font-size:clamp(0.9rem, 0.95vw + 0.75rem, 1rem);
  margin:.5rem 0;
}
.card-text-justify p{
  text-align:justify;
}
.section-cta{margin-top:1rem;text-align:center}

/* Contact */
.grid-contact{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.contact-left-column{display:flex;flex-direction:column;gap:2.5rem}
.contact-info{padding:2rem}
.map iframe{border:0;width:100%;height:100%;min-height:300px;border-radius:12px}
@media (max-width: 980px){.grid-contact{grid-template-columns:1fr}}
.contact-list{margin:0 0 .5rem 0;padding-left:0;list-style:none}
.contact-list li{margin:1.5rem 0}
html[data-theme="dark"] .contact-info a,
html[data-theme="dark"] .contact-info a:visited{
  color:#ffffff;
}
html[data-theme="dark"] .contact-info a:hover,
html[data-theme="dark"] .contact-info a:focus-visible{
  color:var(--accent);
}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border-radius:.6rem;padding:.6rem 1rem;font-weight:600;border:1px solid transparent;cursor:pointer;transition:transform .06s ease, background .2s ease, border-color .2s ease}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--brand-blue);color:#fff}
.btn-primary:hover{filter:brightness(1.05)}
.btn-secondary{background:var(--brand-beige);color:#0f2745;border-color:#d9cfba}
.btn-ghost{background:transparent;border-color:var(--border);color:inherit}

/* Forms */
.form-field{display:grid;gap:.35rem;margin:.6rem 0}
input, textarea, select{width:100%;padding:.6rem .75rem;border-radius:.5rem;border:1px solid var(--border);background:var(--bg);color:inherit;font-family:inherit;font-size:inherit}
select{cursor:pointer;appearance:none;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%235b636e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');background-repeat:no-repeat;background-position:right .75rem center;background-size:16px;padding-right:2.5rem}
select:disabled{cursor:not-allowed;opacity:.6;background-color:var(--bg-alt)}
html[data-theme="dark"] select{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23b7c0cc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>')}
select option{background:var(--bg);color:var(--text);padding:.5rem}
input:focus, textarea:focus, select:focus{outline:3px solid rgba(183,155,111,.35);border-color:var(--accent)}
.error{color:#b42318;font-size:.85rem;height:1rem}
.form-actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.form-note{margin:0;color:var(--muted);font-size:.9rem}
.form-note a{color:var(--brand-blue);text-decoration:none}
.form-note a:hover{color:var(--accent);text-decoration:underline}
html[data-theme="dark"] .form-note a{color:#60a5fa}

/* Form messages */
.form-message{
  padding:.85rem 1rem;
  border-radius:.5rem;
  margin-bottom:1rem;
  font-size:.95rem;
  line-height:1.5;
  border-left:4px solid;
  animation:slideIn .3s ease-out
}
.form-message-success{
  background-color:#f0fdf4;
  border-color:#22c55e;
  color:#166534
}
html[data-theme="dark"] .form-message-success{
  background-color:#14532d;
  color:#86efac
}
.form-message-error{
  background-color:#fef2f2;
  border-color:#ef4444;
  color:#991b1b
}
html[data-theme="dark"] .form-message-error{
  background-color:#7f1d1d;
  color:#fca5a5
}

/* Button loading state */
.btn.loading{
  opacity:.7;
  cursor:not-allowed;
  position:relative
}
.btn.loading::after{
  content:'';
  position:absolute;
  width:16px;
  height:16px;
  top:50%;
  left:50%;
  margin-left:-8px;
  margin-top:-8px;
  border:2px solid transparent;
  border-top-color:currentColor;
  border-radius:50%;
  animation:spin .8s linear infinite
}

@keyframes slideIn{
  from{
    opacity:0;
    transform:translateY(-10px)
  }
  to{
    opacity:1;
    transform:translateY(0)
  }
}

@keyframes spin{
  to{transform:rotate(360deg)}
}

/* Footer */
.site-footer{border-top:1px solid var(--border);padding:2.5rem 0;background:var(--bg)}
.footer-inner{display:grid;grid-template-columns:minmax(0, 1.5fr) minmax(0, 1.6fr) minmax(0, .4fr);gap:2.5rem 3rem;align-items:start}
.footer-brand{display:flex;align-items:flex-start;gap:1rem}
.footer-brand img{width:48px;height:48px;border-radius:8px;object-fit:cover;background:var(--bg);border:1px solid var(--border);box-shadow:var(--shadow)}
.footer-brand-name{display:block;font-size:1.1rem;font-weight:700;color:var(--brand-blue)}
html[data-theme="dark"] .footer-brand-name{color:var(--accent)}
.footer-tagline{margin:.25rem 0 0 0;color:var(--muted);font-size:.95rem}
.footer-links-wrapper{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1.9fr);gap:3rem;align-items:start;justify-self:start;text-align:left}
.footer-title{margin:0 0 .6rem 0;font-size:1rem;font-weight:700;letter-spacing:.01em;color:var(--brand-blue)}
html[data-theme="dark"] .footer-title{color:var(--text)}
.footer-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.65rem;min-width:220px}
.footer-links a{color:inherit;text-decoration:none;transition:color .2s ease, text-decoration-color .2s ease;padding:2px 0;white-space:nowrap}
.footer-links a:hover{color:var(--brand-blue);text-decoration:underline;text-decoration-color:var(--accent)}
html[data-theme="dark"] .footer-links a:hover{color:var(--accent)}
.footer-contact{font-style:normal;display:grid;gap:.3rem;font-size:1rem;line-height:1.7;color:var(--muted)}
.footer-links-wrapper > div:last-child{max-width:1120px}
/* Permitir que el bloque de marca tenga mayor ancho útil para tagline y copy */
.footer-brand > div{max-width:720px}
.footer-contact p{margin:0}
.footer-contact a{color:inherit;text-decoration:none}
.footer-contact a:hover{color:var(--brand-blue)}
html[data-theme="dark"] .footer-contact a:hover{color:var(--accent)}
html[data-theme="dark"] .footer-contact a,
html[data-theme="dark"] .footer-contact a:visited{
  color:#ffffff;
}
.footer-aside{display:flex;flex-direction:column;align-items:flex-end;gap:1.2rem;text-align:right}
.footer-social{display:flex;gap:.75rem}
.social-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--bg-alt);color:var(--brand-blue);transition:transform .2s ease, box-shadow .2s ease, color .2s ease}
.social-icon svg{display:block;margin:auto}
.social-icon:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgba(9, 20, 45, .15);color:var(--accent)}
html[data-theme="dark"] .social-icon{background:#15243b;color:var(--accent)}
.footer-links a:focus-visible, .social-icon:focus-visible{outline:3px solid rgba(183,155,111,.45);outline-offset:2px;border-radius:8px}

/* Reveal on Scroll (sections) */
.reveal-on-scroll{opacity:0;transform:translateY(24px);transition:opacity .6s ease, transform .6s ease}
.reveal-on-scroll.is-visible{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){
  .reveal-on-scroll{opacity:1;transform:none;transition:none}
}

.copyright{margin:0;font-size:.9rem;color:var(--muted)}
/* Extra spacing when copyright is under the brand (left column) */
.footer-brand .copyright{margin-top:.5rem;line-height:1.5}
@media (max-width: 1024px){
  .footer-inner{grid-template-columns:1fr;gap:2rem}
  .footer-links-wrapper{grid-template-columns:1fr;justify-items:center;text-align:center}
  .footer-aside{align-items:center;text-align:center}
}
@media (max-width: 640px){
  .footer-links{grid-template-columns:1fr;gap:.5rem}
}

/* Lists with checks */
.list-check{list-style:none;padding:0;margin:.75rem 0}
.list-check li{position:relative;padding-left:1.5rem}
.list-check li::before{content:"✔";position:absolute;left:0;color:var(--accent)}

/* WhatsApp floating button */
.wa-float{position:fixed;right:18px;bottom:18px;width:56px;height:56px;border-radius:50%;background:#25D366 url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"white\"><path d=\"M20.52 3.48A11.89 11.89 0 0012.02 0C5.41 0 .07 5.34.07 11.94c0 2.1.55 4.17 1.6 5.99L0 24l6.27-1.64a11.93 11.93 0 005.76 1.47h.01c6.6 0 11.94-5.34 11.94-11.94 0-3.19-1.24-6.19-3.46-8.41zM12.03 22a9.97 9.97 0 01-5.06-1.38l-.36-.21-3.72.97.99-3.63-.24-.37a9.98 9.98 0 01-1.53-5.44C2.11 6.47 6.57 2 12.02 2 17.47 2 21.94 6.47 21.94 11.92 21.94 17.38 17.47 22 12.03 22zm5.84-7.51c-.32-.16-1.9-.94-2.19-1.05-.29-.11-.5-.16-.72.16-.22.32-.83 1.05-1.02 1.27-.19.22-.38.24-.7.08-.32-.16-1.33-.49-2.53-1.55-.94-.84-1.58-1.87-1.77-2.19-.19-.32-.02-.5.14-.66.14-.14.32-.38.48-.57.16-.19.21-.32.32-.54.11-.22.05-.41-.03-.57-.08-.16-.72-1.75-.98-2.4-.25-.6-.5-.52-.72-.53l-.61-.01c-.22 0-.57.08-.86.41-.29.32-1.12 1.09-1.12 2.66 0 1.57 1.15 3.09 1.31 3.3.16.22 2.28 3.48 5.51 4.88.77.33 1.37.53 1.83.68.77.24 1.48.2 2.04.12.62-.09 1.9-.77 2.17-1.51.27-.74.27-1.37.19-1.51-.08-.14-.29-.22-.61-.38z\"/></svg>') no-repeat center/26px;box-shadow:var(--shadow)}
.wa-float:hover{filter:brightness(1.05)}

/* Scroll animations */
.card.fade-in-up{
  opacity:0;
  transform:translateY(30px);
}
.card.fade-in-up.visible{
  opacity:1;
  transform:translateY(0);
}
.card.fade-in-up.visible:hover{
  transform:translateY(-4px);
}
@media (prefers-reduced-motion: reduce){
  .card.fade-in-up{
    opacity:1;
    transform:translateY(0);
    transition:none;
  }
  .card.fade-in-up:hover{
    transform:translateY(0);
  }
}

/* Utility */
.noscript{padding:.5rem 1rem}
.hide{display:none !important}
