/* ==========================================================================
   MEYAS SEGUROS — Premium Static Site
   Palette: Negro #111111 · Rojo #C8102E · Blanco #FFFFFF · Gris #F5F5F5
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root{
  --black:#0d0d0d;
  --black-soft:#161616;
  --black-card:#1b1b1b;
  --red:#C8102E;
  --red-dark:#8f0b21;
  --red-glow: rgba(200,16,46,.45);
  --white:#ffffff;
  --gray:#F5F5F5;
  --line: rgba(255,255,255,.08);
  --text: #f2f2f2;
  --text-muted: #a8a8a8;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 18px;
  --shadow-soft: 0 20px 60px rgba(0,0,0,.45);
  --container: 1180px;
  color-scheme: dark;
}

[data-theme="light"]{
  --black:#F5F5F5;
  --black-soft:#ffffff;
  --black-card:#ffffff;
  --line: rgba(0,0,0,.08);
  --text:#161616;
  --text-muted:#5c5c5c;
  --shadow-soft: 0 20px 50px rgba(0,0,0,.10);
  color-scheme: light;
}

body{
  margin:0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

h1,h2,h3,h4{
  font-family: var(--font-heading);
  color: var(--text);
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}

p{ color: var(--text-muted); margin:0 0 1em; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }
input, textarea, select{ font-family: inherit; }

.container{ max-width: var(--container); margin:0 auto; padding: 0 24px; }
.container.narrow{ max-width: 760px; }

.eyebrow{
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: .8em;
}
.center{ text-align:center; }
.section-title{ font-size: clamp(1.8rem, 3vw, 2.6rem); }
.section-title.center{ margin-left:auto; margin-right:auto; max-width: 700px; }
.section-text{ max-width: 620px; }
.section-text.center{ margin-left:auto; margin-right:auto; }
.text-red{ color: var(--red); }

.section{ padding: 110px 0; position: relative; }
.two-col{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items:start; }

/* ---------- Glassmorphism ---------- */
.glass{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}
[data-theme="light"] .glass{
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.7));
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing:.01em;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, background .35s ease, color .35s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 10px 30px var(--red-glow);
}
.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 16px 40px var(--red-glow); }
.btn-outline{
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-outline:hover{ border-color: var(--red); color: var(--red); transform: translateY(-3px); }
.btn-small{ padding: 10px 22px; font-size: .85rem; }
.btn-full{ width:100%; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 500;
  background: rgba(13,13,13,.7);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background .4s ease, border-color .4s ease;
}
[data-theme="light"] .site-header{ background: rgba(245,245,245,.75); }

.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 84px;
}
.brand{ display:flex; align-items:center; }
.brand-logo-img{
  height: 40px; width:auto; display:block;
  filter: drop-shadow(0 0 10px rgba(200,16,46,.18));
  transition: filter .3s ease, transform .3s ease;
}
.brand:hover .brand-logo-img{ transform: translateY(-1px); filter: drop-shadow(0 0 16px rgba(200,16,46,.32)); }
.brand-logo-img--lg{ height: 58px; margin-bottom: 4px; }
/* On light backgrounds the logo (light silver text) needs a dark chip behind it for contrast */
[data-theme="light"] .brand-logo-img{
  background: var(--black); padding: 8px 14px; border-radius: 10px;
}

.main-nav{ display:flex; gap: 30px; }
.main-nav a{
  font-size: .9rem; font-weight:500; color: var(--text-muted);
  position: relative; padding: 6px 0;
  transition: color .3s ease;
}
.main-nav a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:2px;
  background: var(--red); transition: width .3s ease;
}
.main-nav a:hover{ color: var(--text); }
.main-nav a:hover::after{ width:100%; }

.header-actions{ display:flex; align-items:center; gap:16px; }
.theme-toggle{
  width: 40px; height:40px; border-radius:50%; border:1px solid var(--line);
  background: transparent; color: var(--text); display:flex; align-items:center; justify-content:center;
  transition: border-color .3s ease, transform .3s ease;
}
.theme-toggle:hover{ border-color: var(--red); transform: rotate(20deg); }
.theme-toggle svg{ width:18px; height:18px; }
.theme-toggle .icon-moon{ display:none; }
[data-theme="light"] .theme-toggle .icon-sun{ display:none; }
[data-theme="light"] .theme-toggle .icon-moon{ display:block; }

.nav-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:none; padding:8px; }
.nav-toggle span{ width:22px; height:2px; background: var(--text); border-radius:2px; transition: all .3s ease; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex; align-items:center;
  padding-top: 84px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #1a1a1a 0%, var(--black) 60%);
}
[data-theme="light"] .hero{ background: radial-gradient(ellipse at 50% 0%, #ffffff 0%, var(--black) 70%); }

.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-glow{
  position:absolute; border-radius:50%; filter: blur(90px); opacity:.55;
}
.hero-glow--red{ width:520px; height:520px; background: var(--red); top:-120px; left:-120px; animation: floatGlow 12s ease-in-out infinite; }
.hero-glow--white{ width:420px; height:420px; background:#fff; opacity:.08; bottom:-160px; right:-80px; animation: floatGlow 14s ease-in-out infinite reverse; }
@keyframes floatGlow{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(40px,30px) scale(1.1); }
}
.hero-grid{
  position:absolute; inset:0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  opacity: .5;
}
.hero-scanline{
  position:absolute; left:0; right:0; top:38%;
  height:1px;
  background: linear-gradient(90deg, transparent, var(--red) 20%, #fff 50%, var(--red) 80%, transparent);
  box-shadow: 0 0 20px var(--red-glow);
  animation: scan 6s ease-in-out infinite;
}
@keyframes scan{ 0%,100%{ opacity:.3; } 50%{ opacity:.9; } }

.hero-inner{
  position:relative; z-index:2;
  display:grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items:center;
}
.hero-copy{ max-width: 620px; }
.hero-photo{
  position:relative; border-radius: 22px; overflow:hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transform: rotate(1.2deg);
  transition: transform .5s ease;
}
.hero-photo:hover{ transform: rotate(0deg) scale(1.01); }
.hero-photo::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(13,13,13,0) 40%, rgba(13,13,13,.55) 100%);
}
.hero-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.hero-title{
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: .4em;
}
.hero-sub{ font-size: 1.15rem; max-width: 560px; margin-bottom: 2em; }
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom: 2.6em; }
.hero-indicators{ display:flex; flex-wrap:wrap; gap: 22px; }
.hero-indicators li{ display:flex; align-items:center; gap:8px; font-size:.88rem; color: var(--text-muted); }
.hero-indicators svg{ width:18px; height:18px; color: var(--red); flex-shrink:0; }

.hero-scroll{
  position:absolute; bottom: 34px; left:50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px;
  z-index:2;
}
.hero-scroll span{
  position:absolute; top:6px; left:50%; transform: translateX(-50%);
  width:4px; height:8px; background: var(--red); border-radius:2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot{ 0%{ opacity:1; top:6px;} 60%{ opacity:0; top:20px;} 100%{ opacity:0; top:6px;} }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-card{ padding: 28px 20px; text-align:center; }
.stat-num{
  display:block; font-family: var(--font-heading); font-weight:700;
  font-size: 2.3rem; color: var(--red); line-height:1;
  margin-bottom:.3em;
}
.stat-label{ font-size:.82rem; color: var(--text-muted); }

.nosotros-photo{
  border-radius: var(--radius); overflow:hidden; margin-bottom: 22px;
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  max-width: 260px;
}
.nosotros-photo img{ width:100%; height:100%; object-fit:cover; display:block; }

.check-list{ margin-top: 1.6em; }
.check-list li{
  position:relative; padding-left: 30px; margin-bottom: .8em; color: var(--text);
  font-size:.95rem;
}
.check-list li::before{
  content:''; position:absolute; left:0; top:4px; width:18px; height:18px;
  border-radius:50%;
  background: var(--red);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/60% no-repeat;
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px;
}
.service-card{
  padding: 34px 28px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s ease;
}
.service-card:hover{ transform: translateY(-8px); border-color: var(--red); }
.service-icon{
  width: 54px; height:54px; border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color:#fff; margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.service-icon svg{ width:26px; height:26px; }
.service-card h3{ font-size: 1.15rem; margin-bottom:.5em; }
.service-card p{ font-size:.9rem; }

.service-card--photo{ padding:0; overflow:hidden; }
.service-photo{ position:relative; height: 240px; overflow:hidden; }
.service-photo img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.service-card--photo:hover .service-photo img{ transform: scale(1.06); }
.service-photo::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(13,13,13,0) 55%, rgba(13,13,13,.75) 100%);
}
.service-photo .service-icon{
  position:absolute; left:16px; top:16px; bottom:auto; margin-bottom:0; z-index:2;
  border: 2px solid rgba(255,255,255,.35);
}
.service-card--photo h3, .service-card--photo p, .service-card--photo .link-more{
  padding-left: 28px; padding-right: 28px;
}
.service-card--photo h3{ margin-top: 20px; }
.service-card--photo .link-more{ display:inline-block; margin-bottom: 28px; }
.link-more{
  display:inline-block; margin-top: 6px; font-size:.85rem; font-weight:600; color: var(--red);
  transition: letter-spacing .3s ease;
}
.link-more:hover{ letter-spacing:.03em; }

/* ==========================================================================
   ASEGURADORAS ALIADAS
   ========================================================================== */
.section--aliadas{ padding: 70px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.logos-strip{
  display:flex; flex-wrap:wrap; justify-content:center; gap: 16px; margin-top: 30px;
}
.logo-chip{
  padding: 14px 28px; border-radius: 999px; border:1px solid var(--line);
  font-family: var(--font-heading); font-weight:600; letter-spacing:.04em;
  color: var(--text-muted); font-size:.85rem;
  transition: color .3s ease, border-color .3s ease, transform .3s ease;
}
.logo-chip:hover{ color: var(--text); border-color: var(--red); transform: translateY(-3px); }

.logo-badge{
  display:flex; align-items:center; justify-content:center;
  padding: 14px 26px; border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .3s ease, box-shadow .3s ease;
}
.logo-badge:hover{ transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.logo-badge img{ height: 30px; width:auto; display:block; }

/* ==========================================================================
   INSTAGRAM STRIP
   ========================================================================== */
.ig-grid{
  display:grid; grid-template-columns: repeat(3, minmax(180px, 300px)); gap: 22px;
  justify-content:center; margin-top: 40px;
}
.ig-item{
  position:relative; border-radius: var(--radius); overflow:hidden;
  aspect-ratio: 1/1; display:block; border:1px solid var(--line);
}
.ig-item img{ width:100%; height:100%; object-fit:cover; display:block; transition: transform .5s ease; }
.ig-item:hover img{ transform: scale(1.07); }
.ig-overlay{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background: rgba(13,13,13,0); transition: background .3s ease;
  color:#fff; opacity:0;
}
.ig-overlay svg{ width:34px; height:34px; }
.ig-item:hover .ig-overlay{ background: rgba(13,13,13,.45); opacity:1; }

/* ==========================================================================
   RESPALDARTE TRUST BANNER
   ========================================================================== */
.section--trust{ padding: 90px 0; }
.trust-inner{ display:grid; grid-template-columns: .8fr 1fr; gap: 60px; align-items:center; }
.trust-photo{
  border-radius: var(--radius); overflow:hidden; border:1px solid var(--line);
  box-shadow: var(--shadow-soft); max-width: 460px; width:100%;
  aspect-ratio: 3/4;
}
.trust-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.trust-copy .section-title{ max-width: 520px; }
.trust-copy .section-text{ max-width: 520px; }

/* ==========================================================================
   POR QUÉ ELEGIRNOS
   ========================================================================== */
.why-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top:50px; }
.why-card{ padding: 30px; text-align:left; }
.why-icon{
  width:50px; height:50px; border-radius:12px; margin-bottom:18px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line); color: var(--red);
}
.why-icon svg{ width:24px; height:24px; }
.why-card h3{ font-size:1.05rem; }
.why-card p{ font-size:.88rem; }

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */
.testimonial-carousel{ margin-top: 50px; padding: 4px; }
.testimonial-track{ display:block; position:relative; width:100%; }
.testimonial-card{
  display:none; width: 100%; max-width: 100%; box-sizing:border-box;
  padding: 40px; flex-direction:column; gap: 18px;
  overflow-wrap: break-word; word-break: break-word; hyphens: auto;
  /* backdrop-filter (glass) breaks overflow:hidden clipping on the carousel
     in some browsers, so this card gets a solid background instead of blur */
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  background: var(--black-card) !important;
}
/* Only the active slide is shown — avoids any cross-browser overflow/clip bugs entirely */
.testimonial-card.is-active{ display:flex; }
[data-theme="light"] .testimonial-card{ background: var(--black-card) !important; }
.stars{ color: var(--red); letter-spacing:.15em; font-size:1.1rem; }
.testimonial-card p{ font-size:1.1rem; color: var(--text); font-style: italic; overflow-wrap: break-word; word-break: break-word; }
.testimonial-author{ display:flex; align-items:center; gap:12px; min-width:0; }
.testimonial-author strong{ overflow-wrap: break-word; }
.avatar{
  width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--red-dark), var(--red)); color:#fff; font-weight:700;
  flex-shrink:0;
}
.testimonial-author strong{ display:block; }
.testimonial-author small{ display:block; color: var(--text-muted); font-size:.78rem; margin-top:2px; }
.carousel-dots{ display:flex; justify-content:center; gap:8px; margin-top: 22px; }
.carousel-dots button{
  width:9px; height:9px; border-radius:50%; border:none; background: var(--line); padding:0;
  transition: background .3s ease, transform .3s ease;
}
.carousel-dots button.active{ background: var(--red); transform: scale(1.3); }

/* ==========================================================================
   PROCESO
   ========================================================================== */
.process-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px;
  position:relative;
}
.process-step{ position:relative; padding: 10px; }
.process-num{
  display:block; font-family: var(--font-heading); font-weight:800;
  font-size: 2.6rem; color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
  margin-bottom: .3em;
}
.process-step h3{ font-size:1.05rem; }
.process-step p{ font-size:.88rem; }

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top:50px; }
.blog-card{ overflow:hidden; }
.blog-cover{ height: 190px; overflow:hidden; }
.blog-body{ padding: 26px; }
.blog-tag{
  display:inline-block; font-size:.7rem; text-transform:uppercase; letter-spacing:.1em;
  color: var(--red); font-weight:700; margin-bottom: 10px;
}
.blog-card h3{ font-size:1.1rem; }
.blog-card p{ font-size:.88rem; }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.accordion{ margin-top: 40px; border-top:1px solid var(--line); }
.accordion-item{ border-bottom:1px solid var(--line); }
.accordion-trigger{
  width:100%; text-align:left; background:none; border:none; color: var(--text);
  padding: 22px 4px; font-size:1rem; font-weight:500;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.accordion-icon{
  font-size:1.4rem; color: var(--red); transition: transform .3s ease; flex-shrink:0;
}
.accordion-item.open .accordion-icon{ transform: rotate(45deg); }
.accordion-panel{
  max-height:0; overflow:hidden; transition: max-height .4s ease, padding .4s ease;
  padding: 0 4px;
}
.accordion-item.open .accordion-panel{ max-height: 300px; padding-bottom: 20px; }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-form{ padding: 34px; margin-top: 30px; display:flex; flex-direction:column; gap:18px; }

.quote-cta{ padding: 40px 34px; margin-top: 30px; text-align:center; }
.quote-cta-icon{
  width: 56px; height:56px; border-radius: 16px; margin: 0 auto 20px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color:#fff; box-shadow: 0 10px 26px var(--red-glow);
}
.quote-cta-icon svg{ width:26px; height:26px; }
.quote-cta h3{ font-size: 1.2rem; margin-bottom:.5em; }
.quote-cta p{ max-width: 400px; margin-left:auto; margin-right:auto; }
.quote-cta .btn{ margin-top: 6px; }
.quote-cta .form-note{ margin-top: 16px; font-size:.8rem; color: var(--text-muted); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.contact-form label{
  display:flex; flex-direction:column; gap:8px; font-size:.82rem; color: var(--text-muted); font-weight:500;
}
.contact-form input, .contact-form select, .contact-form textarea{
  background: rgba(255,255,255,.04); border:1px solid var(--line); border-radius:10px;
  padding: 12px 14px; color: var(--text); font-size:.92rem; outline:none;
  transition: border-color .3s ease, background .3s ease;
}
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form select,
[data-theme="light"] .contact-form textarea{ background: rgba(0,0,0,.03); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus{
  border-color: var(--red); background: rgba(200,16,46,.06);
}
.form-note{ font-size:.82rem; color: var(--red); min-height: 1.2em; }

.contact-side{ display:flex; flex-direction:column; gap:22px; margin-top: 30px; }
.contact-info{ padding: 30px; display:flex; flex-direction:column; gap:16px; }
.contact-info h3{ font-size:1.1rem; }
.contact-line{
  display:flex; align-items:center; gap:12px; font-size:.92rem; color: var(--text);
  transition: color .3s ease, transform .3s ease;
}
.contact-line svg{ width:20px; height:20px; color: var(--red); flex-shrink:0; }
a.contact-line:hover{ color: var(--red); transform: translateX(4px); }
.map-embed{ overflow:hidden; padding:6px; }
.map-embed iframe{ border-radius: 12px; filter: grayscale(.3) contrast(1.1); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ background: var(--black-soft); border-top:1px solid var(--line); padding-top: 70px; }
.footer-inner{
  display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px;
}
.footer-brand p{ font-size:.85rem; max-width: 280px; margin-top: 10px; }
.footer-social{ display:flex; gap: 12px; margin-top: 18px; }
.footer-social a{
  width:38px; height:38px; border-radius:50%; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; color: var(--text-muted);
  transition: color .3s ease, border-color .3s ease, transform .3s ease;
}
.footer-social svg{ width:17px; height:17px; }
.footer-social a:hover{ color:#fff; border-color: var(--red); background: var(--red); transform: translateY(-3px); }
.footer-col h4{ font-size:.8rem; text-transform:uppercase; letter-spacing:.1em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col a, .footer-col span{ display:block; font-size:.88rem; color: var(--text-muted); margin-bottom: 10px; transition: color .3s ease; }
.footer-col a:hover{ color: var(--red); }
.footer-bottom{
  border-top:1px solid var(--line); padding: 22px 24px; text-align:center;
}
.footer-bottom p{ font-size:.78rem; margin:0; }

/* ==========================================================================
   WHATSAPP FLOAT
   ========================================================================== */
.whatsapp-float{
  position: fixed; bottom: 26px; right: 26px; z-index: 600;
  width: 60px; height:60px; border-radius:50%;
  background: #25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 30px rgba(37,211,102,.5);
  animation: pulseWA 2.6s ease-in-out infinite;
  transition: transform .3s ease;
}
.whatsapp-float svg{ width:30px; height:30px; }
.whatsapp-float:hover{ transform: scale(1.08); }
@keyframes pulseWA{
  0%,100%{ box-shadow: 0 10px 30px rgba(37,211,102,.5); }
  50%{ box-shadow: 0 10px 30px rgba(37,211,102,.85), 0 0 0 10px rgba(37,211,102,.12); }
}

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal{
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in-view{ opacity:1; transform: translateY(0); }
/* Defensive: split-text elements must never stay invisible if JS fails */
.reveal[data-split]{ opacity:1; transform:none; }

/* ==========================================================================
   BLOG CARD LINK (whole card clickable)
   ========================================================================== */
a.blog-card{ display:block; color:inherit; }
a.blog-card .link-more{ display:inline-block; }
.blog-cover img{ width:100%; height:100%; object-fit:cover; display:block; transition: transform .5s ease; }
.blog-card:hover .blog-cover img{ transform: scale(1.06); }

/* ==========================================================================
   ARTICLE PAGE (blog posts)
   ========================================================================== */
.article-hero{
  position:relative; margin-top: 84px; height: 46vh; min-height: 320px; max-height: 480px;
  overflow:hidden;
}
.article-hero img{ width:100%; height:100%; object-fit:cover; display:block; }
.article-hero::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(13,13,13,.15) 0%, rgba(13,13,13,.85) 100%);
}
.article-hero-content{
  position:absolute; left:0; right:0; bottom:0; padding: 40px 0 34px;
  color:#fff;
}
.article-hero-content .eyebrow{ color: #ff8a9c; }
.article-hero-content h1{
  font-size: clamp(1.8rem, 4vw, 2.6rem); color:#fff; max-width: 780px; margin:0;
}
.article-meta{
  font-size:.85rem; color: var(--text-muted); margin: 18px 0 0;
  display:flex; gap:16px; flex-wrap:wrap;
}
.article-body{ max-width: 720px; margin: 0 auto; padding: 60px 0 40px; }
.article-body p{ color: var(--text); font-size: 1.02rem; line-height: 1.75; margin-bottom: 1.3em; }
.article-body h2{ font-size: 1.4rem; margin-top: 1.6em; margin-bottom: .6em; }
.article-body ul{ margin: 0 0 1.3em; padding-left: 1.3em; list-style: disc; }
.article-body li{ color: var(--text); margin-bottom: .5em; line-height:1.6; }
.back-link{
  display:inline-flex; align-items:center; gap:8px; font-size:.88rem; font-weight:600;
  color: var(--text-muted); margin-bottom: 10px; transition: color .3s ease;
}
.back-link:hover{ color: var(--red); }
.back-link svg{ width:16px; height:16px; }
.cta-box{
  margin-top: 40px; padding: 34px; text-align:center;
}
.cta-box h3{ margin-bottom:.4em; }
.cta-box p{ max-width: 480px; margin-left:auto; margin-right:auto; }
.cta-box .btn{ margin-top: 12px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px){
  .two-col{ grid-template-columns:1fr; }
  .services-grid{ grid-template-columns: repeat(2,1fr); }
  .why-grid{ grid-template-columns: repeat(2,1fr); }
  .process-grid{ grid-template-columns: repeat(2,1fr); }
  .blog-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-photo{ max-width: 420px; margin: 0 auto; order:-1; }
  .trust-inner{ grid-template-columns: 1fr; text-align:center; }
  .trust-photo{ margin: 0 auto; }
  .trust-copy .section-title, .trust-copy .section-text{ margin-left:auto; margin-right:auto; }
}

@media (max-width: 760px){
  .main-nav{
    position: fixed; top: 84px; left:0; right:0; bottom:0;
    background: var(--black); flex-direction:column; padding: 40px 24px;
    gap: 24px; transform: translateX(100%); transition: transform .4s ease;
    z-index: 400;
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav a{ font-size:1.2rem; }
  .nav-toggle{ display:flex; }
  .header-actions .btn-small{ display:none; }

  .services-grid, .why-grid, .process-grid, .blog-grid{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: 1fr 1fr; }
  .ig-grid{ grid-template-columns: 1fr; max-width: 340px; margin-left:auto; margin-right:auto; }
  .nosotros-photo{ max-width: 200px; }
  .form-row{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; text-align:left; }
  .section{ padding: 70px 0; }
}
