/* AntenistasCastellon.com — CSS base (v2 corregida) */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

:root {
  --primary: #5c9243;
  --primary-dark: #2f5f2a;
  --primary-soft: #e9f4e6;
  --accent: #7bbf5a;
  --text: #1b1f1c;
  --muted: #5b665f;
  --border: #d9e6d6;
  --bg: #ffffff;
  --shadow: 0 18px 50px rgba(0,0,0,.10);
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1160px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
  top: 0px !important; /* Google translate fix */
}
a{color:inherit; text-decoration:none}
img{max-width:100%; height:auto; display:block}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}

/* ============================= */
/* HEADER + HERO TECNOLÓGICO     */
/* ============================= */
.header-hero-bg{
  background-image: url("fondo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================= */
/* HEADER                        */
/* ============================= */
.topbar{
  border-bottom:1px solid rgba(217,230,214,.25);
  backdrop-filter:saturate(150%) blur(6px);
}
.topbar .row{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding:10px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800;
  letter-spacing:.3px;
}
.brand .mark{
  width:38px; height:38px; border-radius:12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display:grid; place-items:center;
  color:white; box-shadow: 0 10px 28px rgba(92,146,67,.25);
  flex:0 0 auto;
}
.brand .name{
  color:#d9e6d6;
  display:flex; flex-direction:column; line-height:1.05;
}
.brand .name span:first-child{font-size:18px}
.brand .name span:last-child{font-size:12px; color:#bebfbf; font-weight:600}

/* NAV sticky */
.nav-wrap{
  position:sticky; top:0; z-index:50;
  border-bottom: none;
  backdrop-filter:saturate(150%) blur(8px);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.nav-links{
  display:flex; align-items:center; gap:18px;
  font-weight:700;
}

/* NAV LINKS (modo oscuro sobre fondo) */
.nav-links a,
.nav-links button[data-dropdown-btn]{
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  color: #ffffff;
  transition: background .2s ease, transform .2s ease;
}

.nav-links a:hover,
.nav-links button[data-dropdown-btn]:hover{
  background: rgba(255,255,255,0.12);
}

.nav-links a[style]{
  background: rgba(255,255,255,0.18) !important;
  color: #ffffff !important;
}

/* Button reset correcto (antes se quedaba negro por all:unset en dropdown) */
.nav-links button[data-dropdown-btn]{
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

/* Hover con “sensación padding” sin saltos */
.nav-links a:hover,
.nav-links button[data-dropdown-btn]:hover{
  transform: translateY(-1px);
}

/* CTA nav */
.nav-cta{
  display:flex; gap:10px; align-items:center;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:800;
  letter-spacing:.2px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover{transform: translateY(-1px)}

.btn-primary{
  background: #335025;
  color:#fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.btn-primary:hover{box-shadow: 0 16px 45px rgba(0,0,0,.28)}

/* Ghost: en hero/nav oscuro debe verse premium */
.btn-ghost{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  color: #ffffff;
}
.btn-ghost:hover{
  background: rgba(255,255,255,0.14);
}

/* Teléfono */
.phone{
  color: #fff;
  font-size:18px;
  display:flex; align-items:center; gap:8px;
  font-weight:900;
}
.phone small{display:block;font-size: 11px; font-weight:700; color:#bebfbf;}

.lang{
  display:flex; gap:8px; align-items:center;
  color:var(--muted);
  font-weight:700;
}

/* ============================= */
/* DROPDOWN (único y premium)     */
/* ============================= */
.dropdown{position:relative}

/* Botón dropdown (mismo look que links) */
.dropdown > button[data-dropdown-btn]{
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: #ffffff;
}

/* Estado abierto */
.dropdown.open > button[data-dropdown-btn]{
  background: rgba(255,255,255,0.16);
}

/* Caja menú */
.menu{
  position:absolute;
  top: calc(100% + 12px);
  left:0;
  min-width: 320px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(217,230,214,.9);
  border-radius: 18px;
  padding: 10px 0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .22s ease;
  z-index: 1000;
}

.dropdown.open .menu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Links del submenu */
.menu a{
  display:block;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 800;
  color: #1e1e1e;
  border-bottom: 1px dotted rgba(92,146,67,.75);
  transition: all .18s ease;
}

.menu a:last-child{border-bottom:none}

/* Hover submenu */
.menu a:hover{
  background: rgba(92,146,67,.09);
  color: #2e6f3e;
  padding-left: 24px;
}

/* (Opcional si vuelves a usar subtítulos) */
.menu a span:last-child{
  font-size: 12px;
  color: #4f5a53;
  font-weight: 700;
}

/* ============================= */
/* BADGES                         */
/* ============================= */
.badge{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 14px;
  border-radius:999px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.38);
  color:#ffffff;
  font-weight:800;
  font-size:13px;
  backdrop-filter: blur(4px);
}

/* ============================= */
/* Mobile nav                      */
/* ============================= */
.hamburger{
  display:none;
  width:46px; height:46px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);
  color:#fff;
}
.hamburger svg{width:22px; height:22px}
.mobile-panel{
  display:none;
  padding:12px 0 18px;
}
.mobile-panel a{
  display:block;


}
.mobile-panel a:hover{background:rgba(255,255,255,0.12)}
.mobile-panel .sub{

}

/* ============================= */
/* HERO                            */
/* ============================= */
.hero{
  position:relative;
  overflow:hidden;
  padding: 90px 0 70px; /* desktop */
}

/* Mejoras HERO PC: anchura texto + spacing */
.hero .grid{
  display:grid;
  grid-template-columns: 1.08fr .92fr;
  gap:34px;
  align-items:center;
}

.hero h1{
  margin:14px 0 12px;
  font-size: clamp(40px, 4.2vw, 40px);
  line-height:1.02;
  letter-spacing:-.8px;
  color:#fff;
}

.hero p{
  margin:0 0 18px;
  color: rgba(255,255,255,.86);
  font-weight:650;
  font-size: 17px;
  max-width: 62ch;
}

.hero .actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:12px
}

/* Visual */
.hero-visual{
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-visual img{width:100%; height:100%; object-fit:cover}

/* ============================= */
/* Sections                        */
/* ============================= */
.section{padding:52px 0}
.section h2{
  font-size: 30px;
  margin:0 0 14px;
  letter-spacing:-.4px;
}
.section p.lead{
  margin:0 0 24px;
  max-width:72ch;
  color:var(--muted);
  font-weight:650;
}

.cards-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
}

.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:18px;
  background:#fff;
  box-shadow: 0 16px 40px rgba(0,0,0,.06);
}
.card .icon{
  width:44px; height:44px;
  border-radius:14px;
  background: var(--primary-soft);
  border:1px solid var(--border);
  display:grid; place-items:center;
  margin-bottom:10px;
}
.card h3{margin:0 0 6px; font-size:16px}
.card p{margin:0; color:var(--muted); font-weight:650; font-size:13px}

/* Split */
.split{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:18px;
  align-items:stretch;
}
.panel{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.07);
  padding:22px;
}
.panel h3{margin:0 0 10px}
.panel ul{margin:0; padding-left:18px; color:var(--muted); font-weight:650}
.panel li{margin:8px 0}

/* FAQ accordion */
.faq{
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background:#fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.06);
}
.faq-item{border-top:1px solid var(--border)}
.faq-item:first-child{border-top:none}
.faq-q{
  display:flex; justify-content:space-between; align-items:center;
  padding:16px 18px;
  cursor:pointer;
  font-weight:900;
}
.faq-q span{color:var(--primary-dark)}
.faq-a{
  display:none;
  padding:0 18px 16px;
  color:var(--muted);
  font-weight:650;
}
.faq-item.open .faq-a{display:block}
.faq-item.open .faq-q{background: var(--primary-soft)}

/* Blog */
.post-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.post-card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background:#fff;
  box-shadow: 0 16px 40px rgba(0,0,0,.06);
}
.post-card .thumb{aspect-ratio: 16/9; background: linear-gradient(135deg, rgba(92,146,67,.18), rgba(123,191,90,.10));}
.post-card .body{padding:16px}
.post-card h3{margin:0 0 8px}
.meta{font-size:12px; color:var(--muted); font-weight:750; display:flex; gap:10px; flex-wrap:wrap}

.article{
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 0 30px;
}
.article h1{font-size: clamp(30px, 4vw, 46px)}
.article p{color:var(--muted); font-weight:650; font-size:16px}
.article h2{margin-top:26px}
.callout{
  margin-top:26px;
  padding:18px;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: var(--primary-soft);
}
.callout strong{color: var(--primary-dark)}

/* Footer */
.footer{
  border-top:1px solid var(--border);
  background: #0f1712;
  color: #e9f4e6;
  padding: 34px 0 120px;
}
.footer .cols{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap:18px;
}
.footer a{color:#e9f4e6}
.footer p{color: rgba(233,244,230,.85); margin:10px 0 0}
.footer .mini{color: rgba(233,244,230,.7); font-size:12px; margin-top:14px}
.footer .links a{display:block; padding:6px 0; color: rgba(233,244,230,.9)}
.footer .links a:hover{text-decoration:underline}

/* Floating WhatsApp */
.whatsapp-float{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:60;
  width:58px; height:58px;
  border-radius:999px;
  background: linear-gradient(135deg, #25D366, #1ebe5d);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  display:grid; place-items:center;
}
.whatsapp-float svg{width:26px; height:26px; fill:white}

/* Mobile bottom bar */
.bottombar{
  position:fixed;
  left:0; right:0;
  bottom:0;
  z-index:55;
  background: rgba(255,255,255,.92);
  border-top:1px solid var(--border);
  backdrop-filter:saturate(150%) blur(10px);
  padding:10px 14px;
}

/* Por defecto NO se muestra */
.bottombar{ display:none; }

.bottombar .row{
  display:flex; gap:10px;
}
.bottombar .row a{flex:1}
.bottombar .btn{width:100%}

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

/* TABLET (≤ 980px) */
@media (max-width: 980px){

  .cards-grid{ grid-template-columns: repeat(2, 1fr); }
  .post-grid{ grid-template-columns: repeat(2, 1fr); }

  /* Hero pasa a columna */
  .hero{ padding: 0; } /* clave: el hero ya va sin padding en móvil/tablet */
  .hero .container{ padding-left: 0; padding-right: 0; }

  .hero .grid{
    display:flex;
    flex-direction: column;
    gap: 18px;
  }

  .hero-visual{
    order: -1;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-radius: 0;
  }

  .hero-visual img{ border-radius: 0; }

  /* Padding al bloque de texto */
  .hero .grid > :not(.hero-visual){
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Ocultar WhatsApp flotante en tablet/móvil */
  .whatsapp-float{
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* MOBILE (≤ 720px) */
@media (max-width: 720px){

  .nav-links, .nav-cta{ display:none; }

  .hamburger{
    display:inline-grid;
    place-items:center;
  }

  .mobile-panel{ display:none; }
  .mobile-panel.open{ display:block; }

  .cards-grid{ grid-template-columns: 1fr; }
  .post-grid{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr !important; }
  .footer .cols{ grid-template-columns: 1fr; }

  /* Bottom bar solo en móvil */
  .bottombar{ display:block; }

  .bottombar .row{ flex-direction: column; }
  .bottombar .row a{ width:100%; }
}

/* SMALL MOBILE (≤ 480px) */
@media (max-width: 480px){
  .hero{ padding: 0 !important; } /* tu requisito exacto */
}

/* DESKTOP FIX */
@media (min-width: 981px){

  .hero .grid{
    display: grid !important;
    grid-template-columns: 1.08fr .92fr !important;
  }

  .hero .grid > :not(.hero-visual){
    grid-column: 1;
  }

  .hero-visual{
    grid-column: 2;
    order: 0 !important;
  }

  .cards-grid{ grid-template-columns: repeat(4,1fr) !important; }
  .split{ grid-template-columns: 1.05fr .95fr !important; }

  /* Footer sin espacio extra */
  .footer{
    padding: 34px 0 34px !important;
  }
}

/* ======================= */
/* EXTRAS: Traductor + logo */
/* ======================= */
.goog-te-banner-frame.skiptranslate { display: none !important; }

/* Logo */
.mark{
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 0;
}
.mark::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
  pointer-events: none;
}

/* ======================= */
/* OCULTAR BOTÓN LLAMAR EN DESKTOP/TABLET */
/* ======================= */
/* Esto afecta al botón "Llamar" del nav-cta (el que lleva .btn-ghost en esa zona) */
@media (min-width: 721px){
  .nav-cta .btn.btn-ghost[href^="tel:"]{
    display:none !important;
  }
}
/* ===================================== */
/* HERO PREMIUM PRO VERSION             */
/* ===================================== */

.hero{
  padding: 110px 0 90px;
  position: relative;
}

/* Overlay sutil para mejorar contraste */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    90deg,
    rgba(0,40,20,.75) 0%,
    rgba(0,40,20,.55) 40%,
    rgba(0,40,20,.25) 70%,
    rgba(0,0,0,0) 100%
  );
  pointer-events:none;
}

/* Asegura que el contenido quede encima */
.hero .container{
  position: relative;
  z-index: 2;
}

/* GRID */
.hero .grid{
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}

/* TITULAR MÁS CONTUNDENTE */
.hero h1{
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 18px;
}

/* PÁRRAFO MÁS LIMPIO */
.hero p{
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255,255,255,.88);
  max-width: 62ch;
  margin-bottom: 28px;
}

/* BADGES MÁS FINOS */
.hero .badge{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
  font-size: 14px;
  padding: 8px 14px;
}

/* CTA PRINCIPAL MÁS PRO */
.hero .btn-primary{
  font-size: 17px;
  padding: 15px 22px;
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.hero .btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0,0,0,.4);
}

/* BOTÓN SECUNDARIO MÁS ELEGANTE */
.hero .btn-ghost{
  border: 1px solid rgba(255,255,255,.4);
  color: #ffffff;
  background: transparent;
}

.hero .btn-ghost:hover{
  background: rgba(255,255,255,.12);
}

/* IMAGEN MÁS PREMIUM */
.hero-visual{
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.15);
  transform: perspective(1000px) rotateY(-3deg);
  transition: transform .4s ease;
}

.hero-visual:hover{
  transform: perspective(1000px) rotateY(0deg);
}

/* ===================================== */
/* HERO MOBILE OPTIMIZADO               */
/* ===================================== */

@media (max-width: 768px){

  .hero{
    padding: 0 !important;
  }

  .hero::before{
    background: linear-gradient(
      180deg,
      rgba(0,40,20,.75) 0%,
      rgba(0,40,20,.6) 45%,
      rgba(0,40,20,.45) 100%
    );
  }

  .hero h1{
    font-size: 34px;
    letter-spacing: -.5px;
  }

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

  .hero-visual{
    transform: none;
    border-radius: 0;
  }
}

/* ============================= */
/* MOBILE MENU GREEN + LINKS WHITE */
/* ============================= */

@media (max-width: 720px){

  /* Mantiene fondo verde (no blanco) */
  .mobile-panel{
    background: transparent !important;
    padding: 8px 0 14px !important;
  }

  /* Enlaces principales */
  .mobile-panel a{
    border-radius: 12px;
    margin: 10px 5px;
    border: 1px solid #999;
    color: #ffffff !important;
    padding: 12px 20px !important;
    font-size: 16px;

  }

  /* Subzonas */
  .mobile-panel .sub a{
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.85) !important;
   
  }

  /* Quitar línea al último */
  .mobile-panel a:last-child{
    border-bottom: none;
  }

  /* Hover elegante */
  .mobile-panel a:hover{
    background: rgba(255,255,255,0.08);
  }

}

