/* =========================
   HEADER (sobre HERO)
   - NO sticky / NO fondo blanco
   - Respeta el header fijo del style.css (#header ...)
========================= */

/* Importante: no pisar el layout del style.css */
.site-header {
  position: static;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

/* Contenedor */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0; /* el padding lo controla style.css */
}

/* Logo */
.logo img {
  height: 58px;
  width: auto;
  display: block;
}

/* Botón menú móvil */
.menu-toggle {
  display: none;
  font-size: 22px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.10);
  color: #fff;
  cursor: pointer;
}

/* Navegación */
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px; /* como en tu header sobre hero */
}

.main-nav a {
  color: rgba(255,255,255,0.95);
  font-weight: 600;
  font-size: 18px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: opacity .2s ease, background .2s ease;
}

/* Hover suave (sin pastilla verde) */
.main-nav a:hover {
  opacity: 0.75;
  background: rgba(255,255,255,0.08);
}

/* Activo: fondo blanco + texto teal (para que se vea sobre la foto) */
.main-nav a.active {
  background: rgba(255,255,255,0.92);
  color: #0ea5a4;
  opacity: 1;
}

/* Responsive menú */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 86px;

    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid #e5e7eb;
    padding: 16px;

    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .main-nav.active { display: flex; }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .main-nav ul a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    color: #111827;
  }

  .main-nav ul a.active {
    background: #0ea5a4;
    color: #ffffff;
  }
}

/* =========================
   TESTIMONIOS (slider) – 2 visibles (sin asomar 3º) + flechas fuera + dots
========================= */
.testimonios{
  background: #8dd9e9;
  padding: 90px 0;
  overflow: hidden;
}

.testimonios .container{
  max-width: 1100px;
}

/* Título */
.testimonios-title{
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 44px);
  color: #fff;
  text-align: center;
  margin-bottom: 50px;
}

.testimonios-title span{
  background: #ffffff;
  color: #ef4444;
  padding: 2px 10px;
  border-radius: 8px;
}

/* =========================
   Slider base
========================= */
.slider{
  position: relative;
}

/* Viewport: recorta el carrusel para que SOLO se vean 2 */
.slides-viewport{
  overflow: hidden;

  /* deja hueco a izquierda/derecha para flechas fuera (como la foto) */
  margin: 0 110px;
}

/* Carril */
.slides{
  display: flex;
  gap: 40px;
  padding: 10px 0 0;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}

/* 2 visibles exactos */
.slide{
  flex: 0 0 calc((100% - 40px) / 2);
}

/* =========================
   Burbuja blanca
========================= */
.t-card{
  background: #fff;
  border-radius: 14px;
  padding: 22px 26px;
  
  position: relative;
}

.t-card::after{
  content:"";
  position:absolute;
  left: 56px;
  bottom:-10px;
  width: 18px;
  height: 18px;
  background:#fff;
  transform: rotate(45deg);
  box-shadow: 8px 8px 18px rgba(0,0,0,0.06);
}

.t-card p{
  margin: 0;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.75;
}

/* Usuario */
.t-user{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  margin-left: 18px;
  padding-bottom: 6px;
}

.t-avatar{
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.85);
  
}

.t-name{
  display: inline-block;
  background: #fff;
  color: #ef4444;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 10px;
}

/* =========================
   Flechas (círculo blanco + SVG) – fuera del bloque visible
========================= */
.slider-btn{
  position: absolute;
  top: 52%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.96);
  color: #ef4444;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 60;
  
  transition: transform .18s ease, background .22s ease;
}

.slider-btn.prev{ left: 24px; }
.slider-btn.next{ right: 24px; }

.slider-btn svg{
  width: 26px;
  height: 26px;
  display: block;
}

.slider-btn:hover{
  background: #ffffff;
  transform: translateY(-50%) scale(1.06);
  
}

.slider-btn:active{
  transform: translateY(-50%) scale(0.98);
}

/* =========================
   Dots (blancos visibles + activo pastilla)
========================= */
.slider-dots{
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.slider-dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.22);
  cursor: pointer;
  transition: width .25s ease, background .25s ease, transform .2s ease, border-color .25s ease;
}

.slider-dot:hover{
  transform: scale(1.1);
  border-color: rgba(255,255,255,1);
  background: rgba(255,255,255,0.32);
}

.slider-dot.active{
  width: 34px;
  background: rgba(0, 150, 155, 0.9);
  border-color: rgba(255,255,255,0);
}

/* =========================
   Responsive: 1 visible
========================= */
@media (max-width: 900px){
  .slides-viewport{
    margin: 0 86px;
  }

  .slides{
    gap: 18px;
  }

  .slide{
    flex: 0 0 100%;
  }

  .slider-btn{
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 600px){
  .slides-viewport{
    margin: 0 78px;
  }

  .t-card{
    padding: 18px 18px;
  }

  .t-card::after{
    left: 40px;
  }
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background: #0b1220;
  color: #e5e7eb;
  padding-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 26px;
  padding-bottom: 40px;
}

.footer-logo img {
  height: 42px;
  width: auto;
  display: block;
  margin-bottom: 12px;
  padding-left: 0;
  margin-left: 0;
  

}

.footer-col h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-text {
  color: #cbd5e1;
  max-width: 40ch;
}

.footer-list li {
  padding: 6px 0;
  color: #cbd5e1;
}

.footer-list a { color: #e5e7eb; text-decoration: underline; }

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
}

/* Barra inferior */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 0;
}

.footer-bottom-container {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: #cbd5e1;
}

.footer-legal {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: #cbd5e1;
  text-decoration: underline;
}

/* Responsive footer */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}


/* =========================
   Slider - Controles
========================= */
#testimonialsSlider {
  position: relative;
  overflow: hidden;
}

#testimonialsSlider .slides {
  position: relative;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  font-size: 22px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: transparent;
  cursor: pointer;
}

.slider-dot.active {
  background: #0ea5a4;
  border-color: #0ea5a4;
}

@media (max-width: 700px) {
  .slider-btn { display: none; } /* en móvil ocultamos flechas para simplificar */
}

/* ==========================================================
   BACK TO TOP – ESTILO LIMPIO CLÍNICA
========================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;

    width: 58px;
    height: 58px;

    border-radius: 50%;
    border: none;

    background: #d8d3cc; /* beige suave */
    color: #ffffff;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 25px rgba(0,0,0,.12);

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);

    transition:
        background 0.45s ease,
        opacity .3s ease,
        transform .3s ease;

    z-index: 999;
}

/* Visible */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover – solo cambio progresivo de color */
.back-to-top:hover {
    background: #0ea5a4; /* color corporativo */
}

/* Flecha */
.arrow-icon {
    width: 28px;   /* un poco más grande */
    height: 28px;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* =========================
   CTA – LLAMADA A LA ACCIÓN
========================= */
.cta{
  position: relative;
  padding: 100px 0;
  background: linear-gradient(
      rgba(14,165,183,0.85),
      rgba(14,165,183,0.85)
    ),
    url("../img/fondo-mascota.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.cta::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15), transparent 60%);
  pointer-events:none;
}

.cta-wrap{
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.cta h2{
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta p{
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.95;
  margin-bottom: 36px;
}

/* Botones */
.cta-buttons{
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-cta-primary{
  background: #ffffff;
  color: #0f7b86;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  transition: all .25s ease;
}

.btn-cta-primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(0,0,0,0.30);
}

.btn-cta-secondary{
  background: transparent;
  color: #ffffff;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.9);
  transition: all .25s ease;
}

.btn-cta-secondary:hover{
  background: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}

/* =========================
   SECCIÓN CONSEJOS / TIPS
========================= */

.tips{
  padding: 150px 0;
  background: #ffffff;
}

.tips .container{
  max-width: 1200px;
}

/* ===== Cabecera ===== */

.tips-head{
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.tips-head h2{
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  margin-bottom: 18px;
  color: #111827;
}

.tips-head p{
  color: #6b7280;
  font-size: 18px;
  line-height: 1.7;
}

/* ===== Grid ===== */

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

/* ===== Card ===== */

.tip-card{
  display: flex;
  flex-direction: column;
}

/* Imagen */

.tip-media{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  aspect-ratio: 4 / 3;
  box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

.tip-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.tip-card:hover .tip-media img{
  transform: scale(1.05);
}

/* Etiqueta flotante */

.tip-date{
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: #ffffff;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  letter-spacing: .5px;
}

/* ===== Contenido ===== */

.tip-body{
  padding-top: 22px;
}

/* Meta categorías */

.tip-meta{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
}

.tip-ic{
  color: #ef4444;
  font-size: 14px;
}

/* Título */

.tip-title{
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 14px;
  line-height: 1.3;
}

.tip-title a{
  text-decoration: none;
  color: #111827;
  transition: color .2s ease;
}

.tip-title a:hover{
  color: #ef4444;
}

/* Extracto */

.tip-excerpt{
  color: #6b7280;
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 18px;
}

/* Leer más */

.tip-more{
  font-weight: 800;
  color: #0ea5a4;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s ease;
}

.tip-more:hover{
  opacity: .8;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1100px){
  .tips-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px){
  .tips{
    padding: 70px 0;
  }

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

  .tips-head p{
    font-size: 16px;
  }
}
/* =========================
   GALERÍA MOSAICO FULL WIDTH – REPARTO MEJOR (menos recorte)
========================= */

.photo-mosaic{
  width: 100%;
  padding: 60px 0px 0px 0px;
  background: #ffffff;
}

.mosaic-grid{
  display: grid;
  width: 100%;
  gap: 8px;                 /* separaciones blancas */
  background: #ffffff;

  grid-template-columns: repeat(12, 1fr);

  /* “unidad” de altura pequeña para poder repartir mejor */
  grid-auto-rows: clamp(18px, 1.6vw, 26px);
}

/* Item base */
.m-item{
  position: relative;
  overflow: hidden;
  display: block;
  background: #f3f4f6;
}

.m-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;        /* mantiene look pro */
  object-position: center;  /* centra bien el recorte */
  display: block;
  transition: transform .4s ease, filter .35s ease;
}

.m-item:hover img{
  transform: scale(1.05);
  filter: saturate(1.05);
}

/* =========================
   REPARTO (como tu captura, pero mejor balanceado)
   - Top: 3 bloques similares
   - Bottom: izquierda mediana, centro grande, derecha mediana
========================= */

/* Fila superior (altura similar) */
.m1{ grid-column: 1 / 6;  grid-row: 1 / 15; }   /* 14 unidades alto */
.m2{ grid-column: 6 / 9;  grid-row: 1 / 15; }
.m3{ grid-column: 9 / 13; grid-row: 1 / 15; }

/* Fila inferior (más aire para que no se corten caras) */
.m4{ grid-column: 1 / 4;  grid-row: 15 / 31; }  /* 16 unidades alto */
.m5{ grid-column: 4 / 8; grid-row: 15 / 31; }  /* centro grande */
.m6{ grid-column: 8 / 13;grid-row: 15 / 31; }

/* =========================
   Responsive
========================= */
@media (max-width: 1100px){
  .mosaic-grid{
    grid-auto-rows: clamp(20px, 2.3vw, 30px);
  }

  /* 2 columnas arriba, luego full, y abajo 2 + full */
  .m1{ grid-column: 1 / 7;  grid-row: 1 / 15; }
  .m2{ grid-column: 7 / 13; grid-row: 1 / 15; }
  .m3{ grid-column: 1 / 13; grid-row: 15 / 28; }

  .m4{ grid-column: 1 / 7;  grid-row: 28 / 42; }
  .m5{ grid-column: 7 / 13; grid-row: 28 / 42; }
  .m6{ grid-column: 1 / 13; grid-row: 42 / 55; }
}

@media (max-width: 700px){
  .mosaic-grid{
    grid-template-columns: 1fr;
    grid-auto-rows: clamp(16px, 4vw, 24px);
  }

  /* Stack vertical con alturas razonables */
  .m1{ grid-column: 1; grid-row: 1 / 18; }
  .m2{ grid-column: 1; grid-row: 18 / 35; }
  .m3{ grid-column: 1; grid-row: 35 / 52; }
  .m4{ grid-column: 1; grid-row: 52 / 70; }
  .m5{ grid-column: 1; grid-row: 70 / 92; }
  .m6{ grid-column: 1; grid-row: 92 / 110; }
}



/* =========================
   FEATURES con IMÁGENES (como la captura)
========================= */
.features-img{
  padding: 150px 0px 150px 0px;
  background: #f6f6f6;
}

.features-img .container{
  max-width: 1200px;
}

.features-img-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 90px;
  text-align: center;
}

/* item */
.fitem{
  padding: 10px 10px 0;
}

/* icono/foto grande suave */
.ficon{
  height: 120px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  opacity: 0.20;            /* gris ultra suave como la imagen */
}

.ficon img{
  width: 140px;             /* tamaño grande */
  height: 120px;
  display: block;
}

/* título */
.fitem h3{
  font-size: 34px;
  font-weight: 900;
  color: #374151;
  margin: 0 0 14px;
  line-height: 1.1;
}

/* texto */
.fitem p{
  margin: 0 auto 22px;
  color: #9ca3af;
  max-width: 320px;
  line-height: 1.8;
  font-size: 16px;
}

/* link */
.flink{
  color: #0ea5a4;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.flink:hover{
  opacity: .75;
}

/* Responsive */
@media (max-width: 1100px){
  .features-img-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }
  .fitem h3{
    font-size: 30px;
  }
}

@media (max-width: 650px){
  .features-img{
    padding: 70px 0;
  }
  .features-img-grid{
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .ficon{
    height: 110px;
  }
  .ficon img{
    width: 130px;
  }
}


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

.cookie-banner{
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;

  display: none;
}

.cookie-banner.show{
  display: block;
}

.cookie-content{
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  background: #ffffff;
  border: 1px solid rgba(24, 78, 119, 0.10);
  border-radius: 22px;

  box-shadow:
    0 18px 45px rgba(17, 24, 39, 0.10),
    0 6px 18px rgba(17, 24, 39, 0.06);
}

.cookie-content p{
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #425466;
  max-width: 760px;
}

.cookie-content a{
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.25s ease;
}

.cookie-content a:hover{
  color: #0b5c56;
  text-decoration: underline;
}

.cookie-buttons{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie{
  appearance: none;
  border: none;
  cursor: pointer;

  padding: 12px 20px;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 700;
  line-height: 1;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn-cookie:hover{
  transform: translateY(-1px);
}

.btn-cookie.accept{
  background: linear-gradient(135deg, #0f766e, #14967f);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

.btn-cookie.accept:hover{
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.28);
}

.btn-cookie.reject{
  background: #f4f7f8;
  color: #234;
  border: 1px solid rgba(24, 78, 119, 0.12);
}

.btn-cookie.reject:hover{
  background: #eaf1f2;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px){

  .cookie-banner{
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .cookie-content{
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-content p{
    max-width: 100%;
    font-size: 14px;
  }

  .cookie-buttons{
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* =========================================
   MÓVIL
========================================= */

@media (max-width: 600px){

  .cookie-banner{
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-content{
    padding: 18px 16px;
    border-radius: 18px;
    gap: 16px;
  }

  .cookie-buttons{
    width: 100%;
    flex-direction: column;
  }

  .btn-cookie{
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
  }
}


/* =========================================
   MENSAJE FORMULARIO
========================================= */


.form-response{
  display: none;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
}

.form-response.show{
  display: block;
}

.form-response.success{
  background: #eaf8f2;
  color: #1f6f50;
  border: 1px solid #b7e4cf;
}

.form-response.error{
  background: #fff1f0;
  color: #b42318;
  border: 1px solid #f5c2c0;
}

.form-honeypot{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}