/* ==================================================
   ELIBEH - REDESIGN V1
================================================== */


/* ==================================================
   VARIABLES
================================================== */

:root{
  --color-primary:#387dad;
  --color-primary-dark:#1f5f8f;
  --color-accent:#8bc440;
  --color-accent-dark:#6fa52e;
  --color-ink:#13293d;
  --color-text:#24313d;
  --color-muted:#617080;
  --color-bg:#f4f8fb;
  --color-soft:#eaf4f8;
  --color-surface:#ffffff;
  --color-line:#d9e7ef;
  --color-warning:#f0b84a;
  --shadow-sm:0 10px 24px rgba(19,41,61,.08);
  --shadow-md:0 22px 52px rgba(19,41,61,.16);
  --header-height:78px;
}


/* ==================================================
   FUENTES
================================================== */

@font-face{
  font-family:RobotoRegular;
  src:url(../fonts/Roboto-Regular.ttf);
}

@font-face{
  font-family:RobotoMedium;
  src:url(../fonts/Roboto-Medium.ttf);
}


/* ==================================================
   BASE
================================================== */

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

html,
body{
  min-height:100%;
}

body{
  display:flex;
  flex-direction:column;
  min-height:100vh;
  padding-top:var(--header-height);
  background:
    linear-gradient(180deg, rgba(234,244,248,.72), rgba(255,255,255,0) 380px),
    var(--color-bg);
  color:var(--color-text);
  font-family:RobotoRegular, Arial, sans-serif;
  font-size:16px;
  line-height:1.65;
  text-rendering:optimizeLegibility;
}

main{
  flex:1;
}

img,
svg{
  display:block;
}

img{
  max-width:100%;
}

a{
  color:inherit;
}

p{
  color:var(--color-muted);
}

strong{
  font-family:RobotoMedium, Arial, sans-serif;
}

::selection{
  background:rgba(139,196,64,.32);
}


/* ==================================================
   ACCESIBILIDAD
================================================== */

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

:focus-visible{
  outline:3px solid rgba(139,196,64,.8);
  outline-offset:4px;
}


/* ==================================================
   LOADER
================================================== */

.site-loader{
  position:fixed;
  inset:0;
  z-index:3000;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    linear-gradient(135deg, rgba(56,125,173,.96), rgba(19,41,61,.98));
  transition:opacity .35s ease, visibility .35s ease;
}

body.is-loaded .site-loader{
  visibility:hidden;
  opacity:0;
  pointer-events:none;
}

.loader{
  display:flex;
  align-items:center;
  justify-content:center;
}

.loader-wrapper{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  width:180px;
  height:54px;
}

.loader-text{
  position:relative;
  z-index:3;
  color:#fff;
  font-family:RobotoMedium, Arial, sans-serif;
  font-size:20px;
  text-shadow:2px 2px 0 rgba(19,41,61,.4);
}

.loader-box{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--color-accent);
  border-radius:8px;
  animation:loadingSlide .9s ease-in-out infinite alternate-reverse;
}

.loader-box::before{
  content:"";
  position:absolute;
  z-index:1;
  width:20px;
  height:170%;
  background:rgba(240,184,74,.55);
  animation:loadingBeam .9s ease-in-out infinite alternate-reverse;
}

@keyframes loadingSlide{
  0%{
    transform:translateX(-20px);
  }

  100%{
    transform:translateX(20px);
  }
}

@keyframes loadingBeam{
  0%{
    transform:translateX(-50px);
  }

  100%{
    transform:translateX(50px);
  }
}

/* ==================================================
   BOTONES
================================================== */

.btn{
  --button-wave:var(--color-accent);
  --button-wash:rgba(255,255,255,.1);

  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 24px;
  overflow:hidden;
  isolation:isolate;
  background:var(--color-primary);
  border:1px solid rgba(56,125,173,.2);
  border-radius:8px;
  box-shadow:8px 8px 18px rgba(19,41,61,.12), -8px -8px 18px rgba(255,255,255,.86);
  color:#fff;
  cursor:pointer;
  font-family:RobotoMedium, Arial, sans-serif;
  text-decoration:none;
  transition:border-color .25s ease, box-shadow .25s ease, color .25s ease, transform .25s ease;
}

.btn::before,
.btn::after,
.nav-links a.nav-cta-button::before,
.nav-links a.nav-cta-button::after,
.whatsapp-action::before,
.whatsapp-action::after,
.back-to-top::before,
.back-to-top::after,
.cookie-consent__close::before,
.cookie-consent__close::after,
.cookie-button::before,
.cookie-button::after{
  content:"";
  position:absolute;
  left:50%;
  z-index:-1;
  display:block;
  border-radius:50%;
  transition:all .5s cubic-bezier(.55,0,.1,1);
}

.btn::before,
.nav-links a.nav-cta-button::before,
.whatsapp-action::before,
.back-to-top::before,
.cookie-consent__close::before,
.cookie-button::before{
  top:100%;
  width:140%;
  height:180%;
  background:var(--button-wash);
  transform:translateX(-50%) scaleY(1) scaleX(1.25);
}

.btn::after,
.nav-links a.nav-cta-button::after,
.whatsapp-action::after,
.back-to-top::after,
.cookie-consent__close::after,
.cookie-button::after{
  top:180%;
  width:160%;
  height:190%;
  background:var(--button-wave);
  transform:translateX(-50%) scaleY(1) scaleX(1.45);
}

.btn:hover{
  border-color:var(--color-accent);
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 14px 32px rgba(56,125,173,.22);
}

.btn:hover::before,
.nav-links a.nav-cta-button:hover::before,
.whatsapp-action:hover::before,
.back-to-top:hover::before,
.cookie-consent__close:hover::before,
.cookie-button:hover::before{
  top:-35%;
  background:var(--button-wave);
  transform:translateX(-50%) scaleY(1.3) scaleX(.8);
}

.btn:hover::after,
.nav-links a.nav-cta-button:hover::after,
.whatsapp-action:hover::after,
.back-to-top:hover::after,
.cookie-consent__close:hover::after,
.cookie-button:hover::after{
  top:-45%;
  background:var(--button-wave);
  transform:translateX(-50%) scaleY(1.3) scaleX(.8);
}

.btn:active{
  transform:translateY(0);
  box-shadow:inset 4px 4px 10px rgba(19,41,61,.18), inset -4px -4px 10px rgba(255,255,255,.36);
}

.btn-cta{
  min-width:168px;
  min-height:54px;
  padding:14px 34px;
  font-size:18px;
}


/* ==================================================
   HEADER
================================================== */

.header{
  position:fixed;
  top:0;
  left:0;
  z-index:1000;
  width:100%;
  background:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(56,125,173,.14);
  box-shadow:0 8px 26px rgba(19,41,61,.08);
  backdrop-filter:blur(16px);
  transition:transform .3s ease, box-shadow .3s ease;
}

.header.hide{
  transform:translateY(-100%);
}

.navbar{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:1180px;
  height:var(--header-height);
  margin:0 auto;
  padding:0 20px;
}

.logo a{
  display:flex;
  align-items:center;
  width:160px;
  min-height:56px;
  text-decoration:none;
}

.logo img{
  width:auto;
  height:52px;
}


/* ==================================================
   NAVEGACION
================================================== */

.nav-links{
  position:relative;
  display:flex;
  align-items:center;
  gap:6px;
  min-height:58px;
  margin:0;
  padding:7px;
  background:rgba(234,244,248,.78);
  border-radius:8px;
  box-shadow:inset 0 0 0 1px rgba(56,125,173,.12);
  list-style:none;
}

.nav-links::before{
  content:"";
  position:absolute;
  inset:0;
  border:1px solid rgba(56,125,173,.2);
  border-radius:8px;
  pointer-events:none;
  transition:border-color .3s ease, box-shadow .3s ease;
}

.nav-links:hover::before{
  border-color:rgba(139,196,64,.72);
  box-shadow:0 0 0 3px rgba(139,196,64,.14);
}

.nav-links li{
  position:relative;
  z-index:1;
}

.nav-links a{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 14px;
  border-radius:8px;
  color:var(--color-primary-dark);
  font-family:RobotoMedium, Arial, sans-serif;
  font-size:15px;
  line-height:1;
  text-decoration:none;
  transition:background .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}

.nav-links a:not(.nav-cta-button):hover,
.nav-links a:not(.nav-cta-button).active{
  background:#fff;
  box-shadow:0 8px 22px rgba(19,41,61,.08);
  color:var(--color-ink);
  transform:translateY(-1px);
}

.nav-links a:not(.nav-cta-button).active::after{
  content:"";
  position:absolute;
  right:12px;
  bottom:7px;
  left:12px;
  height:3px;
  background:var(--color-accent);
  border-radius:999px;
}

.nav-links a.nav-cta-button{
  --button-wave:var(--color-accent);
  --button-wash:rgba(255,255,255,.08);

  z-index:1;
  min-width:96px;
  overflow:hidden;
  isolation:isolate;
  background:var(--color-primary);
  border:1px solid var(--color-primary);
  color:#fff;
}

.nav-links a.nav-cta-button:hover{
  background:var(--color-primary);
  border-color:var(--color-accent);
  box-shadow:0 10px 22px rgba(139,196,64,.26);
  color:#fff;
  transform:translateY(-1px);
}

.nav-links a.nav-cta-button.active{
  background:var(--color-accent);
  border-color:var(--color-accent);
  box-shadow:0 10px 22px rgba(139,196,64,.26);
  color:#fff;
  transform:translateY(-1px);
}

.toggle-menu,
.hamburger{
  display:none;
}


/* ==================================================
   HERO HOME
================================================== */

.hero{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:min(680px, calc(100svh - 128px));
  padding:96px 20px 88px;
  overflow:hidden;
  background:
    linear-gradient(90deg, rgba(19,41,61,.86), rgba(19,41,61,.48) 54%, rgba(19,41,61,.12)),
    url("../img/luces-1.jpeg");
  background-position:center 42%;
  background-size:cover;
}

.hero::after{
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  left:0;
  z-index:0;
  height:118px;
  background:linear-gradient(180deg, rgba(244,248,251,0), var(--color-bg));
  pointer-events:none;
}

.hero-content{
  position:relative;
  z-index:1;
  width:min(100%, 1180px);
  color:#fff;
}

.hero h1{
  max-width:760px;
  margin-bottom:22px;
  color:#fff;
  font-family:RobotoMedium, Arial, sans-serif;
  font-size:64px;
  line-height:1.04;
  text-shadow:0 12px 32px rgba(0,0,0,.28);
}

.hero p{
  max-width:620px;
  color:rgba(255,255,255,.92);
  font-size:20px;
  line-height:1.7;
}

.hero-content .btn{
  margin-top:34px;
  box-shadow:0 18px 40px rgba(19,41,61,.28);
}


/* ==================================================
   STATS
================================================== */

.stats{
  padding:78px 20px;
  background:var(--color-bg);
}

.stats-container{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  max-width:1080px;
  margin:auto;
}

.stat{
  min-height:156px;
  padding:30px 24px;
  background:#fff;
  border:1px solid var(--color-line);
  border-radius:8px;
  box-shadow:var(--shadow-sm);
  text-align:center;
  transition:border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.stat:hover{
  border-color:rgba(139,196,64,.58);
  box-shadow:var(--shadow-md);
  transform:translateY(-4px);
}

.counter{
  display:block;
  color:var(--color-primary);
  font-family:RobotoMedium, Arial, sans-serif;
  font-size:52px;
  line-height:1;
}

.stat p{
  margin-top:14px;
  color:var(--color-text);
  font-family:RobotoMedium, Arial, sans-serif;
}


/* ==================================================
   SERVICIOS
================================================== */

.services,
.services-page{
  padding:92px 20px;
  background:
    linear-gradient(180deg, #fff, rgba(234,244,248,.82));
}

.services-container,
.services-page-container{
  max-width:1180px;
  margin:auto;
}

.services-container{
  text-align:center;
}

.services h2{
  margin-bottom:48px;
  color:var(--color-ink);
  font-family:RobotoMedium, Arial, sans-serif;
  font-size:40px;
  line-height:1.15;
}

.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
}

.service-card{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:360px;
  padding:24px;
  overflow:hidden;
  isolation:isolate;
  background:var(--color-ink);
  border:1px solid var(--color-line);
  border-radius:8px;
  box-shadow:var(--shadow-sm);
  cursor:pointer;
  text-align:left;
  transition:border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.service-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background-position:center;
  background-size:cover;
  filter:saturate(1.04) contrast(1.03);
  transition:filter .5s ease, transform .5s ease;
}

.service-card::after{
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  left:0;
  z-index:-1;
  height:148px;
  background:linear-gradient(180deg, rgba(19,41,61,.52), rgba(19,41,61,.84));
  border-top:4px solid var(--color-accent);
  box-shadow:0 -16px 34px rgba(19,41,61,.2);
  pointer-events:none;
  transition:height .5s ease-in-out, background .5s ease-in-out;
}

.services-grid .service-card:nth-child(1)::before{
  background-image:url("../img/luces-2.jpeg");
}

.services-grid .service-card:nth-child(2)::before{
  background-image:url("../img/cuadro-3.jpeg");
}

.services-grid .service-card:nth-child(3)::before{
  background-image:url("../img/driver-2.jpeg");
}

.service-card:hover{
  border-color:rgba(139,196,64,.58);
  box-shadow:var(--shadow-md);
  transform:translateY(-6px);
}

.service-card:hover::before{
  filter:saturate(1.12) contrast(1.06);
  transform:scale(1.06);
}

.service-card.is-open::after{
  height:250px;
  background:linear-gradient(180deg, rgba(19,41,61,.62), rgba(19,41,61,.92));
}

.service-icon{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  margin-bottom:14px;
  background:var(--color-primary);
  border:3px solid rgba(255,255,255,.88);
  border-radius:8px;
  box-shadow:0 12px 24px rgba(19,41,61,.18);
  color:#fff;
  font-size:24px;
  line-height:1;
  transition:background .3s ease, transform .3s ease;
}

.service-svg{
  width:25px;
  height:25px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.service-card:hover .service-icon{
  background:var(--color-accent);
  transform:translateY(-2px);
}

.service-card.is-open .service-icon{
  background:var(--color-accent);
}

.service-card h3{
  position:relative;
  z-index:1;
  margin-bottom:0;
  color:#fff;
  font-family:RobotoMedium, Arial, sans-serif;
  font-size:22px;
  line-height:1.25;
  text-shadow:0 8px 18px rgba(0,0,0,.2);
}

.service-card p{
  position:relative;
  z-index:1;
  max-height:0;
  margin-top:0;
  overflow:hidden;
  color:rgba(255,255,255,.88);
  line-height:1.75;
  opacity:0;
  transform:translateY(8px);
  transition:max-height .5s ease-in-out, margin-top .5s ease-in-out, opacity .3s ease, transform .3s ease;
}

.service-card.is-open p{
  max-height:130px;
  margin-top:12px;
  opacity:1;
  transform:translateY(0);
}

@media (hover:none), (max-width:768px){

  .service-card::after{
    height:250px;
  }

  .service-card p{
    max-height:150px;
    margin-top:12px;
    opacity:1;
    transform:none;
  }
}


/* ==================================================
   CTA FINAL
================================================== */

.cta-final{
  position:relative;
  isolation:isolate;
  padding:96px 20px;
  overflow:hidden;
  background:
    linear-gradient(90deg, rgba(19,41,61,.9), rgba(31,95,143,.72)),
    url("../img/rebt.jpeg");
  background-position:center 46%;
  background-size:cover;
  color:#fff;
  text-align:center;
}

.cta-final::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.24));
}

.cta-container{
  position:relative;
  z-index:1;
  max-width:760px;
  margin:auto;
}

.cta-final h2{
  margin-bottom:16px;
  color:#fff;
  font-family:RobotoMedium, Arial, sans-serif;
  font-size:40px;
  line-height:1.18;
}

.cta-final p{
  margin-bottom:34px;
  color:rgba(255,255,255,.9);
  font-size:19px;
}


/* ==================================================
   FOOTER
================================================== */

footer{
  width:100%;
  margin-top:auto;
  background:
    linear-gradient(135deg, rgba(19,41,61,.98), rgba(31,95,143,.96));
  border-top:4px solid var(--color-accent);
  box-shadow:0 -8px 24px rgba(19,41,61,.08);
}

.footer-container{
  display:grid;
  grid-template-columns:minmax(240px,1.2fr) minmax(180px,.8fr) minmax(220px,.8fr);
  align-items:start;
  gap:42px;
  max-width:1180px;
  margin:0 auto;
  padding:42px 20px 34px;
}

.footer-logo{
  display:inline-flex;
  align-items:center;
  min-height:54px;
  margin-bottom:14px;
  padding:6px 10px;
  background:rgba(255,255,255,.94);
  border-radius:8px;
  text-decoration:none;
}

.footer-logo img{
  width:auto;
  height:42px;
}

.footer-brand p{
  max-width:380px;
  margin:0;
  color:rgba(255,255,255,.78);
  line-height:1.7;
}

.footer-column-title{
  margin-bottom:14px;
  color:#fff;
  font-family:RobotoMedium, Arial, sans-serif;
  font-size:16px;
  line-height:1.2;
}

.footer-contact p,
.footer-legal li{
  margin:0 0 8px;
  color:rgba(255,255,255,.78);
  font-size:14px;
}

.footer-contact a,
.footer-legal a{
  color:rgba(255,255,255,.82);
  text-decoration:none;
  transition:color .2s ease, padding-left .2s ease;
}

.footer-contact a:hover,
.footer-legal a:hover{
  color:#fff;
}

.footer-legal ul{
  display:grid;
  gap:7px;
  margin:0;
  padding:0;
  list-style:none;
}

.footer-legal a:hover{
  padding-left:4px;
}

.footer-bottom{
  max-width:1180px;
  margin:0 auto;
  padding:18px 20px 24px;
  border-top:1px solid rgba(255,255,255,.14);
}

.footer-bottom p{
  margin:0;
  color:rgba(255,255,255,.68);
  font-size:13px;
}


/* ==================================================
   HERO PAGINAS INTERNAS
================================================== */

.page-hero{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:340px;
  padding:74px 20px;
  overflow:hidden;
  background:
    linear-gradient(90deg, rgba(19,41,61,.88), rgba(56,125,173,.58)),
    url("../img/driver-1.jpeg");
  background-position:center 42%;
  background-size:cover;
  color:#fff;
  text-align:center;
}

.page-hero::after{
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  left:0;
  z-index:0;
  height:76px;
  background:linear-gradient(180deg, rgba(244,248,251,0), var(--color-bg));
  pointer-events:none;
}

.page-hero h1{
  position:relative;
  z-index:1;
  color:#fff;
  font-family:RobotoMedium, Arial, sans-serif;
  font-size:52px;
  line-height:1.1;
  text-shadow:0 12px 30px rgba(0,0,0,.24);
}


/* ==================================================
   CONTACTO
================================================== */

.contact{
  padding:96px 20px;
  background:var(--color-bg);
}

.contact-container{
  max-width:920px;
  margin:auto;
  text-align:center;
}

.contact h2{
  margin-bottom:8px;
  color:var(--color-ink);
  font-family:RobotoMedium, Arial, sans-serif;
  font-size:44px;
  line-height:1.15;
}

.contact-address{
  margin-bottom:42px;
  color:var(--color-muted);
  font-size:20px;
}

.contact-info{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
}

.contact-info p{
  min-height:176px;
  padding:34px 28px;
  background:#fff;
  border:1px solid var(--color-line);
  border-radius:8px;
  box-shadow:var(--shadow-sm);
}

.contact-info strong{
  display:block;
  margin-bottom:14px;
  color:var(--color-primary);
  font-size:18px;
}

.contact-info a{
  color:var(--color-accent-dark);
  font-family:RobotoMedium, Arial, sans-serif;
  font-size:25px;
  line-height:1.3;
  text-decoration:none;
  overflow-wrap:anywhere;
  transition:color .2s ease;
}

.contact-info a:hover{
  color:var(--color-primary);
}


/* ==================================================
   SERVICIOS PAGE
================================================== */

.services-page{
  min-height:56vh;
}

.services-page .services-grid{
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
}

.services-page .service-card{
  min-height:390px;
}


/* ==================================================
   ABOUT
================================================== */

.about{
  padding:96px 20px;
  background:#fff;
}

.about-container{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,.88fr);
  gap:56px;
  align-items:center;
  max-width:1180px;
  margin:auto;
}

.about-text h2{
  position:relative;
  display:inline-block;
  margin-bottom:22px;
  color:var(--color-ink);
  font-family:RobotoMedium, Arial, sans-serif;
  font-size:42px;
  line-height:1.15;
}

.about-text h2::after{
  content:"";
  display:block;
  width:68%;
  height:4px;
  margin-top:10px;
  background:var(--color-accent);
  border-radius:999px;
}

.about-intro{
  color:var(--color-text);
  font-size:19px;
  line-height:1.85;
}

.about-line{
  width:72px;
  height:4px;
  margin:28px 0;
  background:rgba(56,125,173,.2);
  border-radius:999px;
}

.about-text p{
  margin-bottom:18px;
  color:var(--color-muted);
  line-height:1.85;
}

.about-slider{
  height:640px;
  overflow:hidden;
  background:var(--color-soft);
  border:1px solid var(--color-line);
  border-radius:8px;
  box-shadow:var(--shadow-md);
}

.slider-track{
  display:flex;
  width:100%;
  height:100%;
  animation:aboutSlider 22s infinite;
}

.slider-track img{
  flex:0 0 100%;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.about-slider:hover .slider-track{
  animation-play-state:paused;
}

@keyframes aboutSlider{
  0%,
  18%{
    transform:translateX(0);
  }

  22%,
  38%{
    transform:translateX(-100%);
  }

  42%,
  58%{
    transform:translateX(-200%);
  }

  62%,
  78%{
    transform:translateX(-300%);
  }

  82%,
  100%{
    transform:translateX(-400%);
  }
}


/* ==================================================
   DATOS Y PRIVACIDAD
================================================== */

.legal-page{
  padding:82px 20px 96px;
  background:
    linear-gradient(180deg, #fff, rgba(234,244,248,.76));
}

.legal-container{
  max-width:980px;
  margin:auto;
}

.legal-intro{
  max-width:760px;
  margin-bottom:38px;
}

.legal-eyebrow{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  margin-bottom:14px;
  padding:4px 12px;
  background:rgba(139,196,64,.14);
  border:1px solid rgba(139,196,64,.34);
  border-radius:8px;
  color:var(--color-primary-dark);
  font-family:RobotoMedium, Arial, sans-serif;
  font-size:14px;
}

.legal-intro h2,
.legal-section h2{
  color:var(--color-ink);
  font-family:RobotoMedium, Arial, sans-serif;
  line-height:1.18;
}

.legal-intro h2{
  margin-bottom:18px;
  font-size:42px;
}

.legal-intro p{
  font-size:18px;
  line-height:1.8;
}

.legal-section{
  margin-top:22px;
  padding:28px;
  background:#fff;
  border:1px solid var(--color-line);
  border-radius:8px;
  box-shadow:var(--shadow-sm);
}

.legal-section h2{
  margin-bottom:14px;
  font-size:26px;
}

.legal-section h3{
  margin:22px 0 10px;
  color:var(--color-primary-dark);
  font-family:RobotoMedium, Arial, sans-serif;
  font-size:19px;
  line-height:1.3;
}

.legal-section p,
.legal-section li{
  color:var(--color-muted);
}

.legal-section a{
  color:var(--color-primary-dark);
  font-family:RobotoMedium, Arial, sans-serif;
  text-decoration:none;
}

.legal-section a:hover{
  color:var(--color-accent-dark);
}

.legal-list{
  display:grid;
  gap:12px;
  margin:16px 0 0;
  padding:0;
  list-style:none;
}

.legal-list li{
  position:relative;
  padding-left:22px;
}

.legal-list li::before{
  content:"";
  position:absolute;
  top:.72em;
  left:0;
  width:8px;
  height:8px;
  background:var(--color-accent);
  border-radius:999px;
}

.legal-table-wrap{
  margin-top:18px;
  overflow-x:auto;
  border:1px solid var(--color-line);
  border-radius:8px;
}

.legal-table{
  width:100%;
  min-width:720px;
  border-collapse:collapse;
  background:#fff;
}

.legal-table th,
.legal-table td{
  padding:14px 16px;
  border-bottom:1px solid var(--color-line);
  text-align:left;
  vertical-align:top;
}

.legal-table th{
  background:var(--color-soft);
  color:var(--color-ink);
  font-family:RobotoMedium, Arial, sans-serif;
  font-size:14px;
}

.legal-table td{
  color:var(--color-muted);
}

.legal-table tr:last-child td{
  border-bottom:0;
}

.legal-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:22px;
}

.legal-actions .btn{
  box-shadow:none;
}

.legal-note{
  margin-top:18px;
  padding:16px 18px;
  background:rgba(56,125,173,.08);
  border:1px solid rgba(56,125,173,.16);
  border-radius:8px;
  color:var(--color-primary-dark);
}

.legal-section .legal-note{
  color:var(--color-primary-dark);
}

.legal-note p{
  color:inherit;
}


/* ==================================================
   ACCIONES FLOTANTES
================================================== */

.site-actions{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:1200;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:12px;
}

.whatsapp-action,
.back-to-top{
  --button-wash:rgba(255,255,255,.12);

  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  width:52px;
  height:52px;
  min-width:52px;
  overflow:hidden;
  isolation:isolate;
  border:0;
  border-radius:999px;
  box-shadow:0 12px 26px rgba(19,41,61,.22);
  color:#fff;
  cursor:pointer;
  font-family:RobotoMedium, Arial, sans-serif;
  text-decoration:none;
  transition:width .3s ease, transform .2s ease, background-color .2s ease, opacity .2s ease;
}

.whatsapp-action{
  --button-wave:#13b85b;

  background:#00d757;
}

.back-to-top{
  --button-wave:var(--color-primary);

  background:var(--color-ink);
  opacity:0;
  pointer-events:none;
  transform:translateY(10px);
}

.back-to-top.is-visible{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

.action-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:52px;
  min-width:52px;
  height:52px;
}

.action-icon svg{
  width:24px;
  height:24px;
  fill:currentColor;
}

.action-text{
  max-width:0;
  opacity:0;
  overflow:hidden;
  white-space:nowrap;
  font-size:15px;
  transition:max-width .3s ease, opacity .2s ease, padding .3s ease;
}

.whatsapp-action:hover{
  width:150px;
}

.back-to-top:hover{
  width:134px;
  background:var(--color-primary);
}

.whatsapp-action:hover .action-text,
.back-to-top:hover .action-text{
  max-width:92px;
  padding-right:18px;
  opacity:1;
}

.whatsapp-action:active,
.back-to-top:active{
  transform:translate(2px,2px);
}


/* ==================================================
   COOKIES
================================================== */

.cookie-consent{
  position:fixed;
  top:calc(var(--header-height) + 20px);
  right:20px;
  z-index:1300;
  width:min(420px, calc(100% - 40px));
  overflow:hidden;
  background:#fff;
  border:1px solid var(--color-line);
  border-radius:8px;
  box-shadow:0 18px 42px rgba(19,41,61,.22);
  opacity:0;
  pointer-events:none;
  transform:translateY(18px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease;
  visibility:hidden;
}

.cookie-consent.is-visible{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
  visibility:visible;
}

.cookie-consent__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 18px;
  border-bottom:1px solid var(--color-line);
}

.cookie-consent__title{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--color-ink);
  font-family:RobotoMedium, Arial, sans-serif;
  line-height:1.1;
}

.cookie-consent__title svg{
  width:28px;
  height:28px;
  color:var(--color-primary);
}

.cookie-consent__close{
  --button-wave:var(--color-primary);
  --button-wash:rgba(56,125,173,.08);

  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  padding:0;
  overflow:hidden;
  isolation:isolate;
  background:transparent;
  border:0;
  border-radius:8px;
  color:var(--color-muted);
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
}

.cookie-consent__close:hover{
  background:var(--color-primary);
  color:#fff;
}

.cookie-consent__body{
  padding:14px 18px 8px;
}

.cookie-consent__body p{
  font-size:14px;
  line-height:1.55;
}

.cookie-consent__body a{
  color:var(--color-primary-dark);
  font-family:RobotoMedium, Arial, sans-serif;
  text-decoration:none;
}

.cookie-consent__body a:hover{
  color:var(--color-accent-dark);
}

.cookie-consent__footer{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  padding:14px 18px 18px;
}

.cookie-button{
  --button-wave:var(--color-primary);
  --button-wash:rgba(56,125,173,.08);

  position:relative;
  z-index:1;
  overflow:hidden;
  isolation:isolate;
  min-height:42px;
  min-width:112px;
  padding:10px 16px;
  background:#fff;
  border:1px solid var(--color-primary);
  border-radius:8px;
  color:var(--color-primary-dark);
  cursor:pointer;
  font-family:RobotoMedium, Arial, sans-serif;
  text-align:center;
  transition:border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}

.cookie-button:hover{
  background:var(--color-primary);
  border-color:var(--color-primary);
  box-shadow:0 10px 22px rgba(56,125,173,.18);
  color:#fff;
  transform:translateY(-1px);
}

.cookie-button.is-primary{
  --button-wave:var(--color-accent);
  --button-wash:rgba(255,255,255,.08);

  background:#fff;
  border-color:var(--color-primary);
  color:var(--color-primary-dark);
}

.cookie-button.is-primary:hover{
  background:var(--color-primary);
  border-color:var(--color-accent);
  color:#fff;
}

.cookie-button:active{
  transform:translateY(0);
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width:980px){

  .hero h1{
    font-size:50px;
  }

  .services-grid,
  .stats-container{
    grid-template-columns:1fr;
  }

  .service-card{
    min-height:330px;
  }

  .about-container{
    grid-template-columns:1fr;
    gap:40px;
  }

  .about-slider{
    height:520px;
  }
}

@media (max-width:768px){

  :root{
    --header-height:72px;
  }

  body{
    padding-top:var(--header-height);
  }

  .navbar{
    height:var(--header-height);
    padding:0 16px;
  }

  .logo a{
    width:138px;
  }

  .logo img{
    height:46px;
  }

  .hamburger{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:40px;
    height:40px;
    cursor:pointer;
  }

  .hamburger span{
    display:block;
    width:34px;
    height:4px;
    background:var(--color-primary);
    border-radius:999px;
    transition:transform .3s ease, opacity .3s ease, margin .3s ease;
  }

  .toggle-menu:checked + .hamburger span:nth-child(1){
    transform:rotate(45deg);
    transform-origin:left center;
  }

  .toggle-menu:checked + .hamburger span:nth-child(2){
    margin-left:13px;
    transform:rotate(135deg);
    opacity:1;
  }

  .toggle-menu:checked + .hamburger span:nth-child(3){
    transform:rotate(-45deg);
    transform-origin:left center;
  }

  .nav-links{
    position:absolute;
    top:calc(var(--header-height) + 10px);
    right:16px;
    left:16px;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    max-height:0;
    min-height:0;
    padding:0 12px;
    overflow:hidden;
    background:rgba(255,255,255,.98);
    border:1px solid var(--color-line);
    border-radius:8px;
    box-shadow:var(--shadow-md);
    opacity:0;
    pointer-events:none;
    transform:translateY(-8px);
    transition:max-height .35s ease, padding .35s ease, opacity .25s ease, transform .25s ease;
  }

  .toggle-menu:checked ~ .nav-links{
    max-height:360px;
    padding:14px 12px;
    opacity:1;
    pointer-events:auto;
    transform:translateY(0);
  }

  .nav-links li,
  .nav-links a{
    width:100%;
  }

  .nav-links a{
    justify-content:flex-start;
    min-height:48px;
    padding:0 16px;
  }

  .nav-cta-button{
    justify-content:center;
  }

  .hero{
    align-items:flex-end;
    min-height:min(620px, calc(100svh - 108px));
    padding:76px 18px 70px;
    background:
      linear-gradient(180deg, rgba(19,41,61,.36), rgba(19,41,61,.88)),
      url("../img/luces-1.jpeg");
    background-position:center 36%;
    background-size:cover;
  }

  .hero h1{
    font-size:38px;
  }

  .hero p{
    font-size:18px;
  }

  .hero-content .btn{
    width:100%;
    max-width:320px;
  }

  .stats,
  .services,
  .services-page,
  .about,
  .contact,
  .cta-final{
    padding:64px 18px;
  }

  .services h2,
  .cta-final h2,
  .about-text h2,
  .contact h2{
    font-size:34px;
  }

  .page-hero{
    min-height:270px;
    padding:58px 18px;
  }

  .page-hero h1{
    font-size:38px;
  }

  .contact-info{
    grid-template-columns:1fr;
  }

  .contact-info a{
    font-size:21px;
  }

  .about-slider{
    height:420px;
  }

  .footer-container{
    grid-template-columns:1fr;
    gap:28px;
    padding-top:34px;
    text-align:left;
  }

  .site-actions{
    right:14px;
    bottom:14px;
  }

  .cookie-consent{
    top:auto;
    right:14px;
    left:14px;
    bottom:14px;
    width:auto;
  }
}

@media (max-width:480px){

  .hero h1{
    font-size:32px;
  }

  .hero p{
    font-size:16px;
  }

  .btn{
    width:100%;
    padding-right:18px;
    padding-left:18px;
  }

  .service-card{
    padding-right:22px;
    padding-left:22px;
  }

  .service-card::before{
    background-position:center;
  }

  .cookie-consent__footer{
    flex-direction:row;
    align-items:stretch;
  }

  .cookie-button{
    flex:1;
    width:auto;
  }

  .legal-page{
    padding:62px 18px 72px;
  }

  .legal-intro h2{
    font-size:32px;
  }

  .legal-intro p{
    font-size:16px;
  }

  .legal-section{
    padding:22px;
  }

  .legal-section h2{
    font-size:23px;
  }
}

@media (prefers-reduced-motion:reduce){

  *,
  *::before,
  *::after{
    animation-duration:.01ms !important;
    animation-delay:0ms !important;
    animation-iteration-count:1 !important;
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
  }
}
