
/* ================== Elementos comunes ================== */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  padding-top: 70px; /* Compensar header fixed */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  color: #333;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2 {
  color: #004080;
}

ul {
  padding-left: 1.2rem;
  margin: 1rem 0;
} 

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

table, th, td {
  border: 1px solid #ccc;
}

th, td {
  padding: 0.75rem;
  text-align: left;
}

/* Contenedor para tablas en móvil: scroll horizontal */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}

/* ================== Cabecera y navegación ================== */

header {
  background: #004080;
  color: white;
  padding: 0.4rem 1rem;
  text-align: center;
}

header img {
  max-width: 150px;
  display: block;
  margin: 0 auto;
}

.info-certificado {
  margin-top: 1rem;
}

/* ================== Menú Hamburguesa (móvil - elegante y compacto) ================== */

.menu-hamburguesa {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 64, 128, 0.12);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  z-index: 10000;
  position: fixed;
  top: 0.6rem;
  right: 0.75rem;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
}

.menu-hamburguesa:hover {
  background: #044cac !important;
  border-color: rgba(4, 76, 172, 0.3);
  box-shadow: 0 4px 14px rgba(4, 76, 172, 0.25);
  transform: scale(1.02);
}

.menu-hamburguesa:hover span {
  background: #ffffff !important;
}

.menu-hamburguesa:active {
  transform: scale(0.97);
}

.menu-hamburguesa span {
  width: 20px;
  height: 2px;
  background: #333333;
  border-radius: 1px;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  transform-origin: center;
}

/* Estilo hover ya aplicado arriba */

.menu-hamburguesa[aria-expanded="true"] {
  background: #ffffff !important; /* Fondo blanco cuando está abierto */
  border-color: #044cac;
  box-shadow: 0 4px 20px rgba(4, 76, 172, 0.2);
}

.menu-hamburguesa[aria-expanded="true"] span {
  background: #044cac !important; /* Barras #044cac cuando está abierto */
}

.menu-hamburguesa[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-hamburguesa[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-hamburguesa[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

nav {
  background: #033d77;
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

/* Navegación antigua eliminada - ya no se usa */

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9998;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
              opacity 0.3s ease,
              visibility 0s linear 0.35s;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 14px 14px;
}

.nav-mobile.menu-open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
              opacity 0.3s ease,
              visibility 0s linear 0s;
}

/* Botón de cerrar */
.nav-mobile-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  color: #5c6b7a;
  font-size: 1.25rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
  z-index: 10000;
  padding: 0;
  line-height: 1;
}

.nav-mobile-close:hover,
.nav-mobile-close:active {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a2e;
}

.nav-mobile-close span {
  display: block;
  line-height: 1;
}

/* Contenedor del menú - compacto y elegante */
.nav-mobile-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 3rem 1rem 1.5rem;
  width: 100%;
  max-width: 100%;
  gap: 0.15rem;
}

.nav-mobile-link {
  color: #1a1a2e;
  text-decoration: none;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
  max-width: 100%;
  text-align: left;
  border-radius: 8px;
  background: transparent;
  margin: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  border: none;
  box-shadow: none;
  min-height: auto;
  line-height: 1.4;
  touch-action: manipulation;
}

.nav-mobile-link:hover,
.nav-mobile-link:active,
.nav-mobile-link:focus {
  background: rgba(13, 33, 55, 0.06);
  color: #004080;
}

/* Selector de idiomas en móvil */
.selector-idioma-mobile {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
}

.idioma-mobile-titulo {
  color: #5c6b7a;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.idioma-mobile-opciones {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.idioma-mobile-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #1a1a2e;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
  touch-action: manipulation;
}

.idioma-mobile-btn:hover,
.idioma-mobile-btn:active,
.idioma-mobile-btn:focus {
  background: rgba(13, 33, 55, 0.06);
  color: #004080;
}

.idioma-mobile-btn.active {
  background: rgba(13, 33, 55, 0.08);
  color: #004080;
}

.idioma-mobile-btn .idioma-bandera {
  width: 24px;
  height: 18px;
  border-radius: 3px;
}

/* Dropdown móvil */
.dropdown-mobile {
  width: 100%;
  margin-bottom: 0;
}

.dropbtn-mobile {
  color: #1a1a2e;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
  text-align: left;
  border-radius: 8px;
  background: transparent;
  border: none;
  margin: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  min-height: auto;
  line-height: 1.4;
  touch-action: manipulation;
}

.dropbtn-mobile::after {
  content: "›";
  font-size: 1.2em;
  opacity: 0.5;
  transition: transform 0.2s;
}

.dropdown-mobile.active .dropbtn-mobile::after {
  transform: rotate(90deg);
}

.dropbtn-mobile:hover,
.dropbtn-mobile:active {
  background: rgba(13, 33, 55, 0.06);
  color: #004080;
}

.dropdown-content-mobile {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.2rem;
  padding-left: 0.75rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease-out, opacity 0.25s ease-out;
}

.dropdown-content-mobile.active {
  display: flex;
  max-height: 400px;
  opacity: 1;
  transition: max-height 0.35s ease-in, opacity 0.25s ease-in;
}

.dropdown-content-mobile .nav-mobile-link {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  color: #5c6b7a;
}

.dropdown-content-mobile .nav-mobile-link:hover,
.dropdown-content-mobile .nav-mobile-link:active {
  color: #004080;
}

.nav-mobile-link.nav-btn-financia {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff !important;
  font-weight: 600;
  margin-top: 0.35rem;
  padding: 0.7rem 1rem;
  text-align: center;
  justify-content: center;
  border-radius: 8px;
}

.nav-mobile-link.nav-btn-financia:hover,
.nav-mobile-link.nav-btn-financia:active {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff !important;
}

.nav-mobile-link.ekokai-verde {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.nav-mobile-link.ekokai-verde:hover,
.nav-mobile-link.ekokai-verde:active {
  background: rgba(34, 197, 94, 0.18);
  color: #15803d;
}

/* Estilos para navegación antigua - mantener compatibilidad */
nav:not(.header-nav):not(.nav-mobile) a,
.dropbtn:not(.dropbtn-mobile) {
  color: white;
  font-weight: bold;
  text-decoration: none;
  padding: 0.5rem 1rem;
}

nav:not(.header-nav):not(.nav-mobile) a:hover,
.dropbtn:not(.dropbtn-mobile):hover {
  text-decoration: underline;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn::after {
  content: " \25BC";
  font-size: 0.7em;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  top: 100%;
  left: 0;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.dropdown-content a {
  color: #333333 !important; /* Color oscuro para legibilidad */
  padding: 12px 16px;
  display: block;
  text-align: left;
  transition: all 0.3s ease;
}

.dropdown-content a:hover {
  color: #044cac !important; /* Color hover */
  background-color: rgba(4, 76, 172, 0.08);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ================== Hero Section ================== */

/* Sección de texto antes del slider */
.hero-text-section {
  width: 100%;
  padding: 3rem 2rem 2rem;
  text-align: center;
  background: #ffffff;
  margin: 0;
}

.hero-text-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Títulos: desktop es la referencia, tablet y móvil escalan proporcionalmente */
.hero-text-titulo {
  font-size: 2.5rem; /* Ordenador */
  color: #004080;
  margin: 0 auto 1rem;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
}

.hero-text-subtitulo {
  font-size: 1.25rem; /* Ordenador */
  font-weight: 400;
  line-height: 1.6;
  color: #333333;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Slider de imágenes - ÚNICO elemento visual de portada */
.hero {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  margin-top: 0;
  display: block;
  /* Asegurar que no hay imagen de fondo duplicada */
  background: none !important;
  background-image: none !important;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  display: block;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  display: block;
}

.hero-slide.active {
  opacity: 1;
}

/* Tablet: escala desde desktop (2.5rem → 2rem, 1.25rem → 1.1rem) */
@media (max-width: 1024px) {
  .hero-text-section {
    padding: 2.5rem 1.5rem 1.5rem;
  }
  
  .hero-text-titulo {
    font-size: 2rem;
  }
  
  .hero-text-subtitulo {
    font-size: 1.1rem;
  }
  
  .hero {
    height: 260px;
  }
  
  .facebook-titulo {
    font-size: 2rem;
  }
  
  .facebook-subtitulo {
    font-size: 1rem;
  }
  
  .servicios-titulo {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  /* Asegurar que el slider se muestre en móvil - ALTURA ESPECÍFICA */
  .hero {
    display: block !important;
    visibility: visible !important;
    height: 260px !important;
    margin-top: 0;
    background: none !important;
    background-image: none !important;
  }
  
  .hero-slider {
    display: block !important;
    visibility: visible !important;
    height: 100% !important;
  }
  
  .hero-slide {
    display: block !important;
    visibility: visible !important;
    height: 100% !important;
  }
  
  .hero-text-section {
    padding: 1.75rem 1rem 1rem;
    display: block !important;
  }
  
  .hero-text-titulo {
    font-size: 1.75rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
  }
  
  .hero-text-subtitulo {
    font-size: 0.95rem;
    line-height: 1.45;
  }
  
  /* Menú móvil: panel debajo del header, no pantalla completa */
  .nav-mobile {
    top: 52px;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-height: calc(100vh - 64px);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
  }
  
  .nav-mobile.menu-open {
    transform: translateY(0);
  }
  
  .nav-mobile-content {
    padding: 1.5rem 1rem 1rem;
    gap: 0.2rem;
  }
  
  .nav-mobile-link {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    min-height: auto;
    max-width: 100%;
  }
  
  .nav-mobile-close {
    width: 36px;
    height: 36px;
    top: 0.6rem;
    right: 0.75rem;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  /* Asegurar que el slider se muestre en móvil pequeño - ALTURA ESPECÍFICA */
  .hero {
    display: block !important;
    visibility: visible !important;
    height: 240px !important;
    margin-top: 0;
    background: none !important;
    background-image: none !important;
  }
  
  .hero-slider {
    display: block !important;
    visibility: visible !important;
    height: 100% !important;
  }
  
  .hero-slide {
    display: block !important;
    visibility: visible !important;
    height: 100% !important;
  }
  
  .hero-text-section {
    padding: 1.5rem 1rem 0.75rem;
    display: block !important;
  }
  
  .hero-text-titulo {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }
  
  .hero-text-subtitulo {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  /* Menú móvil ultra compacto para móvil pequeño */
  .nav-mobile {
    left: 0.5rem;
    right: 0.5rem;
  }
  
  .nav-mobile-content {
    padding: 1.25rem 0.85rem 0.85rem;
    gap: 0.15rem;
  }
  
  .nav-mobile-link {
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    min-height: auto;
    border-radius: 8px;
  }
  
  .nav-mobile-close {
    width: 34px;
    height: 34px;
    top: 0.5rem;
    right: 0.6rem;
    font-size: 1.15rem;
  }
  
  .dropbtn-mobile {
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    min-height: auto;
    border-radius: 8px;
  }
  
  .dropdown-content-mobile .nav-mobile-link {
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    min-height: auto;
    border-radius: 6px;
  }
}

/* ================== Servicios ================== */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: auto;
  background: white;
}

.service-card {
  background: #ffffff;
  border: 2px solid #044cac;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  color: #044cac;
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ================== Blog ================== */

.blog-preview {
  background-color: #f4f8fc;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 40px auto;
}

.blog-preview h2 {
  color: #006699;
  margin-bottom: 20px;
}

.entrada-blog {
  margin-bottom: 20px;
}

.entrada-blog h3 {
  margin: 0 0 5px;
}

.entrada-blog a {
  color: #007bff;
  font-weight: bold;
}

.entrada-blog a:hover {
  text-decoration: underline;
}

.boton-blog {
  display: inline-block;
  margin-top: 20px;
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.boton-blog:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* ================== Botón WhatsApp ================== */

.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 10px;
  background: #25d366;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.whatsapp-btn img {
  width: 24px;
  height: 24px;
}

.boton-whatsapp {
  display: inline-block;
  background: #25d366;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  border: none;
}

.boton-whatsapp:hover {
  background-color: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.boton-cta-principal {
  font-size: 1.2rem;
  padding: 1.2rem 2.5rem;
  margin: 2rem auto 0;
  display: block;
  max-width: 400px;
  text-align: center;
}

/* ================== Botón Productos Ekokai ================== */

.boton-productos-ekokai {
  text-align: center;
  margin: 3rem 0 4rem 0;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, rgba(4, 76, 172, 0.05), rgba(0, 64, 128, 0.08));
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.boton-productos-ekokai::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(40, 167, 69, 0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.btn-productos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  background: linear-gradient(135deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
  color: white;
  padding: 1.5rem 3.5rem;
  text-decoration: none;
  border-radius: 60px;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 8px 30px rgba(40, 167, 69, 0.5),
              0 4px 15px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.btn-productos::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
  z-index: 0;
}

.btn-productos:hover::before {
  left: 100%;
}

.btn-productos::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 0;
}

.btn-productos:hover::after {
  width: 300px;
  height: 300px;
}

.btn-productos:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 15px 40px rgba(40, 167, 69, 0.7),
              0 8px 20px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #20c997 0%, #17a2b8 50%, #28a745 100%);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-productos:active {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.6);
}

.btn-icono {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.btn-productos:hover .btn-icono {
  animation: none;
  transform: scale(1.2) rotate(10deg);
}

.btn-texto {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-size: 1.3rem;
}

.btn-flecha {
  font-size: 1.8rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.btn-productos:hover .btn-flecha {
  transform: translateX(10px) scale(1.2);
}

@media (max-width: 768px) {
  .boton-productos-ekokai {
    margin: 2rem 0 3rem 0;
    padding: 1.5rem 0.5rem;
  }
  
  .btn-productos {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    gap: 1rem;
  }
  
  .btn-icono {
    font-size: 1.6rem;
  }
  
  .btn-texto {
    font-size: 1.1rem;
  }
  
  .btn-flecha {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .btn-productos {
    padding: 1rem 2rem;
    font-size: 1rem;
    gap: 0.8rem;
  }
  
  .btn-icono {
    font-size: 1.4rem;
  }
  
  .btn-texto {
    font-size: 1rem;
  }
}

/* ================== Secciones adicionales ================== */

.container {
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
  background: white;
}

@media (max-width: 600px) {
  .container {
    padding: 1.25rem 1rem;
  }
}

.articulo-contenido article { margin-top: 1rem; }
.articulo-contenido h1 { margin-bottom: 0.5rem; }
.articulo-contenido time { display: block; font-size: 0.9rem; color: #666; margin-bottom: 1.5rem; }
.articulo-breadcrumb { font-size: 0.9rem; color: #666; margin-bottom: 1rem; }
.articulo-breadcrumb a { color: #004080; text-decoration: none; }
.articulo-breadcrumb a:hover { text-decoration: underline; }

#contacto {
  text-align: center;
  padding: 2rem 1rem;
}

#contacto p {
  margin: 0.5rem 0;
}

footer {
  background-color: #004080;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
}

footer p {
  margin: 0.5rem 0;
}

#contacto iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
  margin-top: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #222;
  color: #fff;
  padding: 1rem;
  text-align: center;
  z-index: 10001; /* Por encima del menú móvil pero por debajo de overlays */
  display: none;
}

#cookie-banner a {
  color: #ffd700;
  text-decoration: underline;
}

#cookie-banner button {
  margin-left: 1rem;
  padding: 0.5rem 1rem;
  background-color: #28a745;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#cookie-banner button:hover {
  background-color: #218838;
}

.productos-aleatorios {
  background: #eef6ff;
  padding: 2rem 1rem;
  border-top: 2px solid #004080;
  margin-top: 2rem;
  text-align: center;
}
.productos-aleatorios h3 {
  color: #004080;
  margin-bottom: 1rem;
}

.logo-ekokai {
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ================== HEADER MODERNO Y COMPACTO ================== */

.header-moderno {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 64, 128, 0.95); /* Fondo azul oscuro para que los enlaces blancos sean visibles */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 70px;
}

.header-moderno.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo + Texto izquierda */
.header-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem;
  border-radius: 8px;
}

.logo-link:hover {
  transform: translateY(-2px);
  background: rgba(0, 64, 128, 0.05);
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
  transform: scale(1.05);
}

.logo-texto {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff; /* Color blanco para que sea visible sobre el fondo oscuro */
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.logo-link:hover .logo-texto {
  color: #ffffff; /* Mantener blanco en hover */
  opacity: 0.9;
}

/* Responsive Logo */
@media (max-width: 1024px) {
  .logo-texto {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .logo-img {
    height: 32px;
  }
  
  .logo-texto {
    font-size: 1rem;
    display: none;
  }
  
  .logo-link {
    gap: 0.4rem;
    padding: 0.2rem;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 30px;
  }
  
  .logo-texto {
    display: none;
  }
  
  .logo-link {
    gap: 0.25rem;
    padding: 0.2rem;
  }
}

/* Navegación centrada */
.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-link {
  color: #ffffff !important; /* Color blanco para los enlaces del menú */
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Asegurar que los enlaces dentro de la navegación tengan color blanco */
.header-nav .nav-link,
.header-nav a {
  color: #ffffff !important; /* Color blanco para los enlaces del menú */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, #044cac, #1877f2);
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: #ffffff !important; /* Mantener blanco en hover */
  background: rgba(255, 255, 255, 0.15); /* Fondo semitransparente blanco */
  transform: translateY(-1px); /* Efecto de elevación */
}

/* Asegurar hover en enlaces de navegación */
.header-nav .nav-link:hover,
.header-nav a:hover {
  color: #ffffff !important; /* Mantener blanco en hover */
  background: rgba(255, 255, 255, 0.15); /* Fondo semitransparente blanco */
  transform: translateY(-1px);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.ekokai-verde {
  color: #28a745 !important; /* Verde para Ekokai */
}

.nav-link.ekokai-verde:hover {
  color: #218838 !important; /* Verde más oscuro en hover */
  background: rgba(40, 167, 69, 0.1);
}

.nav-link.ekokai-verde::after {
  background: linear-gradient(90deg, #28a745, #20c997);
}

/* Botón destacado Financia tu confort - Estilo Apple, degradado verde */
.nav-link.nav-btn-financia {
  background: linear-gradient(135deg, #34c759 0%, #30d158 50%, #28a745 100%) !important;
  color: #ffffff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.35);
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link.nav-btn-financia::after {
  display: none;
}

.nav-link.nav-btn-financia:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(52, 199, 89, 0.45);
  background: linear-gradient(135deg, #30d158 0%, #34c759 50%, #248a3d 100%) !important;
}

.nav-mobile-link.nav-btn-financia {
  background: linear-gradient(135deg, #34c759 0%, #30d158 50%, #28a745 100%) !important;
  color: #ffffff !important;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  margin: 0.5rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.35);
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-mobile-link.nav-btn-financia:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 199, 89, 0.45);
}

/* Badge de financiación (sustituye ekokai-badge) */
.financia-badge {
  display: flex;
  align-items: center;
}

.financia-badge-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #34c759, #28a745);
  color: white;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
  transition: all 0.3s ease;
}

.financia-badge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.4);
}

.financia-badge-icon {
  font-size: 1.1rem;
}

/* Selector de idioma derecha */
.header-idioma {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

/* Información secundaria fuera del header */
.header-info-secundaria {
  margin-top: 70px; /* Altura del header-moderno */
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.info-secundaria-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
}

.ekokai-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ekokai-link {
  display: flex;
  align-items: center;
}

.ekokai-img {
  height: 35px;
  width: auto;
  object-fit: contain;
}

.ekokai-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ekokai-label {
  font-size: 0.7rem;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rite-badge {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #004080, #044cac);
  color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 64, 128, 0.2);
}

.rite-text {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.idiomas-badge {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.idiomas-text {
  font-size: 0.75rem;
  color: #555;
  font-weight: 600;
}

/* ================== SELECTOR DE IDIOMA ================== */

.selector-idioma {
  position: relative;
  z-index: 100;
}

.idioma-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #ffffff; /* Color blanco para que sea visible sobre el fondo oscuro */
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.idioma-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff !important; /* Mantener blanco en hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.idioma-btn:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.idioma-actual {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.idioma-bandera {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.idioma-texto {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.idioma-flecha {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  margin-left: 0.2rem;
}

.idioma-btn[aria-expanded="true"] .idioma-flecha {
  transform: rotate(180deg);
}

.idioma-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 1000;
}

.idioma-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.idioma-opcion {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.2rem;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.idioma-opcion:last-child {
  border-bottom: none;
}

.idioma-opcion:hover {
  background: linear-gradient(90deg, rgba(4, 76, 172, 0.1), rgba(0, 64, 128, 0.05));
  color: #004080;
  padding-left: 1.4rem;
}

.idioma-opcion.active {
  background: linear-gradient(90deg, rgba(4, 76, 172, 0.15), rgba(0, 64, 128, 0.1));
  color: #004080;
  font-weight: 600;
}

.idioma-bandera {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.idioma-nombre {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
}

.idioma-check {
  color: #28a745;
  font-weight: bold;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.idioma-opcion.active .idioma-check {
  opacity: 1;
}

@media (max-width: 1024px) {
  .header-container {
    padding: 0 1rem;
    gap: 0.75rem;
  }
  
  .header-nav {
    gap: 0.5rem;
  }
  
  .nav-link {
    font-size: 0.8rem;
    padding: 0.3rem 0.45rem;
  }
  
  .selector-idioma {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 1rem;
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .idioma-dropdown {
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
  }
  
  .idioma-dropdown.active {
    transform: translateX(-50%) translateY(0);
  }
}

/* Desktop: ocultar menú móvil y mostrar desktop */
@media (min-width: 769px) {
  .menu-hamburguesa {
    display: none !important;
  }
  
  .nav-mobile {
    display: none !important;
  }
  
  .header-nav {
    display: flex !important;
  }
  
  .header-idioma {
    display: flex !important;
  }
  
  .logo-texto {
    display: block;
  }
}

@media (max-width: 768px) {
  .selector-idioma {
    display: none !important; /* Ocultar selector de idiomas del header en móvil */
  }
  
  .idioma-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .idioma-dropdown {
    min-width: 160px;
  }
  
  .idioma-opcion {
    padding: 0.75rem 1rem;
  }
  
  /* Header compacto en móvil (logo + espacio para hamburguesa) */
  .header-moderno {
    display: flex !important;
    visibility: visible !important;
    height: 52px;
    align-items: center;
  }
  
  .header-container {
    height: 52px;
    padding: 0 0.75rem;
  }
  
  .header-logo {
    flex: 1;
  }
  
  /* Ocultar información secundaria en móvil */
  .header-info-secundaria {
    display: none !important;
    visibility: hidden !important;
  }
  
  /* Menú hamburguesa - compacto, alineado con header */
  .menu-hamburguesa {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    top: 0.6rem;
    right: 0.75rem;
  }
  
  /* Ocultar navegación desktop en móvil */
  .header-nav {
    display: none !important;
    visibility: hidden !important;
  }
  
  /* Ocultar selector de idiomas del header en móvil */
  .header-idioma {
    display: none !important;
    visibility: hidden !important;
  }
  
  /* Espacio para header compacto en móvil */
  body {
    padding-top: 52px !important;
  }
  
  .hero {
    margin-top: 0 !important;
  }
  
  /* Asegurar que el menú hamburguesa esté siempre visible y accesible */
  .menu-hamburguesa {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ajustar hero para que no tenga margin-top extra */
  .hero {
    margin-top: 0;
  }
}

.ekokai-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.ekokai-logo:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.ekokai-logo a {
  display: block;
  transition: transform 0.3s ease;
}

.ekokai-logo:hover a {
  transform: scale(1.05);
}

.ekokai-logo p {
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.3;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

.logo-ekokai {
  margin-bottom: 0.2rem;
}

.logo-ekokai img {
  max-width: 75px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-garcimar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.logo-garcimar a {
  display: block;
  transition: transform 0.3s ease;
  margin: 0 auto;
}

.logo-garcimar:hover a {
  transform: scale(1.05);
}

.logo-garcimar img {
  max-width: 140px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: block;
  background: white;
  padding: 0.3rem;
  margin: 0 auto;
}

.info-certificado {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.5rem;
}

.info-certificado .titulo {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
  margin: 0;
  white-space: nowrap;
}

.info-certificado .idiomas {
  font-size: 0.85rem;
  opacity: 0.95;
  font-weight: 500;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  text-align: center;
  margin: 0;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Media query obsoleto eliminado */

/* Media query duplicado eliminado - ya está en otro lugar */
.redes-flotantes {
  position: fixed;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9998; /* Por debajo del menú móvil (9999) pero por encima del contenido */
}

.redes-flotantes img {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease;
}

.redes-flotantes img:hover {
  transform: scale(1.2);
}

@media (max-width: 500px) {
  .redes-flotantes {
    display: none;
  }
}

/* Redes sociales footer */

.footer-redes {
  text-align: center;
  margin-top: 1rem;
}

.footer-redes p {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.iconos-redes {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.iconos-redes img {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  opacity: 0.9;
}

.iconos-redes img:hover {
  transform: scale(1.2);
}

a.ekokai-verde {
  color: #4CAF50; /* verde tipo Ekokai */
  font-weight: bold;
}

a.ekokai-verde:hover {
   text-decoration: underline;
   color: #388e3c; /* tono más oscuro al pasar el ratón */
}

/* ================== About Images ================== */
.about-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-image {
  width: 100%;
  max-width: 300px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ================== Sección Facebook ================== */
.facebook-section {
  padding: 4rem 0;
  background: #f8f9fa;
  position: relative;
}

.facebook-wrapper {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Encabezado simplificado */
.facebook-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.facebook-titulo {
  font-size: 2.5rem; /* Ordenador: referencia para tablet y móvil */
  color: #004080;
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.facebook-subtitulo {
  font-size: 1.1rem; /* Ordenador */
  color: #666;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

/* Contenedor del feed */
.facebook-container {
  width: 100%;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.facebook-container .fb-page {
  width: 100% !important;
  margin: 0;
}

.facebook-container iframe {
  width: 100% !important;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  min-height: 800px;
}

/* Responsive Facebook: escala desde desktop */
@media (max-width: 768px) {
  .facebook-section {
    padding: 3rem 0;
  }
  
  .facebook-wrapper {
    padding: 0 1rem;
  }
  
  .facebook-header {
    margin-bottom: 2rem;
  }
  
  .facebook-titulo {
    font-size: 2rem;
  }
  
  .facebook-subtitulo {
    font-size: 1rem;
  }
  
  .facebook-container {
    padding: 1.5rem;
    border-radius: 12px;
  }
  
  .facebook-container iframe {
    min-height: 600px;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .facebook-section {
    padding: 2rem 0;
  }
  
  .facebook-wrapper {
    padding: 0 0.75rem;
  }
  
  .facebook-titulo {
    font-size: 1.6rem;
  }
  
  .facebook-subtitulo {
    font-size: 0.92rem;
  }
  
  .facebook-container {
    padding: 1rem;
  }
  
  .facebook-container iframe {
    min-height: 500px;
  }
}

/* ================== Servicios Principales ================== */
.servicios-principales {
  padding: 4rem 0;
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
  position: relative;
}

.servicios-principales .container {
  text-align: center;
  margin-bottom: 3rem;
}

.servicios-titulo {
  font-size: 2.5rem; /* Ordenador: referencia para tablet y móvil */
  color: #004080;
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.servicio-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 2px solid transparent;
  height: 100%;
  min-height: 420px;
  will-change: transform;
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(4, 76, 172, 0.08), rgba(0, 64, 128, 0.08));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  border-radius: 20px;
}

.servicio-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #044cac, #004080);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

.servicio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(0, 64, 128, 0.25);
  border-color: rgba(4, 76, 172, 0.3);
}

.servicio-card:hover::before {
  opacity: 1;
}

.servicio-card:hover::after {
  transform: scaleX(1);
}

.servicio-imagen {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #004080, #044cac);
  flex-shrink: 0;
}

.servicio-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.servicio-card:hover .servicio-imagen img {
  transform: scale(1.1);
}

.servicio-contenido {
  padding: 2rem;
  text-align: center;
  background: white;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
}

.servicio-contenido h3 {
  margin: 0 0 0.75rem 0;
  color: #004080;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.servicio-card:hover .servicio-contenido h3 {
  color: #044cac;
}

.servicio-contenido p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 400;
}

@media (max-width: 1200px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .servicios-principales {
    padding: 3rem 0;
  }
  
  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .servicios-titulo {
    font-size: 1.75rem;
  }
  
  .servicio-card {
    min-height: 400px;
  }
  
  .servicio-imagen {
    height: 250px;
  }
  
  .servicio-contenido {
    padding: 1.5rem;
    min-height: 130px;
  }
  
  .servicio-contenido h3 {
    font-size: 1.3rem;
  }
  
  .servicio-contenido p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .servicios-titulo {
    font-size: 1.5rem;
  }
  
  .servicio-card {
    min-height: 380px;
  }
  
  .servicio-imagen {
    height: 220px;
  }
}
.tienda-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 1rem;
  max-width: 100%;
  overflow-x: auto; /* Para mantener disposición horizontal */
}

.filtros {
  flex: 0 0 250px;
  background: #eaf1f8;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.filtros h3 {
  color: #033d77;
  margin-bottom: 1rem;
}

.productos {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  min-width: 600px;
}

.producto {
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .tienda-layout {
    flex-wrap: nowrap;
  }

  .productos {
    min-width: 60vw;
  }

  .filtros {
    min-width: 220px;
  }
}

/* ================== GALERÍA DE TRABAJOS ================== */
.galeria-trabajos {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.galeria-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.galeria-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4/3;
  background: #f0f0f0;
}

.galeria-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.galeria-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 1.5rem 1rem 1rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
  transform: translateY(0);
}

.galeria-overlay p {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.galeria-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ================== TESTIMONIOS Y CONFIANZA ================== */
.testimonios-section {
  padding: 4rem 0;
  background: #ffffff;
}

.testimonios-section h2 {
  text-align: center;
  color: #004080;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonio-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 64, 128, 0.1);
}

.testimonio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.testimonio-icono {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.testimonio-card h3 {
  color: #004080;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.testimonio-card p {
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
}

/* Responsive para galería y testimonios */
@media (max-width: 768px) {
  .galeria-trabajos {
    padding: 3rem 0;
  }
  
  .galeria-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .galeria-intro {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .testimonios-section {
    padding: 3rem 0;
  }
  
  .testimonios-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .testimonios-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .testimonio-card {
    padding: 1.5rem;
  }
  
  .boton-cta-principal {
    font-size: 1.1rem;
    padding: 1rem 2rem;
  }
}

@media (max-width: 480px) {
  .galeria-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonio-icono {
    font-size: 2.5rem;
  }
  
  .testimonio-card h3 {
    font-size: 1.2rem;
  }
}

/* ================== CTAs DESTACADOS ================== */
.cta-destacado {
  background: linear-gradient(135deg, rgba(0, 64, 128, 0.05) 0%, rgba(4, 76, 172, 0.08) 100%);
  padding: 2.5rem;
  border-radius: 12px;
  margin: 3rem 0;
  text-align: center;
  border: 2px solid rgba(0, 64, 128, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.cta-destacado h3 {
  color: #004080;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta-destacado > p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-alternativo {
  margin-top: 1.5rem;
  color: #666;
  font-size: 1rem;
}

.telefono-link {
  color: #004080;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.telefono-link:hover {
  color: #044cac;
  text-decoration: underline;
}

.boton-cta-secundario {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.85rem 1.8rem;
  background: linear-gradient(135deg, #34c759, #28a745);
  color: #fff !important;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.35);
}

.boton-cta-secundario:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 199, 89, 0.45);
}

/* Financiación: video YouTube responsive */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-nota {
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
  margin-top: 0.5rem;
}

.ventajas-lista,
.productos-financiables {
  line-height: 1.8;
}

/* Mensajes de formulario */
.form-mensaje {
  max-width: 640px;
  margin: 2rem auto;
  padding: 1.5rem;
  border-radius: 12px;
}

.form-mensaje-exito {
  background: #d4edda;
  border: 1px solid #28a745;
  color: #155724;
}

.form-mensaje-error {
  background: #f8d7da;
  border: 1px solid #dc3545;
  color: #721c24;
}

/* Formulario solicitud financiación - responsive */
.form-financiacion {
  max-width: 640px;
  margin: 2rem auto;
}

.form-financiacion fieldset {
  border: 1px solid rgba(0, 64, 128, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-financiacion legend {
  color: #004080;
  font-weight: 700;
  padding: 0 0.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #333;
}

.form-financiacion input[type="text"],
.form-financiacion input[type="tel"],
.form-financiacion input[type="email"],
.form-financiacion input[type="number"],
.form-financiacion select,
.form-financiacion textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-financiacion input:focus,
.form-financiacion select:focus,
.form-financiacion textarea:focus {
  outline: none;
  border-color: #004080;
  box-shadow: 0 0 0 2px rgba(0, 64, 128, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-checkbox input {
  width: auto;
  margin-top: 0.25rem;
}

.form-checkbox label {
  margin-bottom: 0;
}

.form-acciones {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.boton-enviar {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #34c759, #28a745);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.35);
}

.boton-enviar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 199, 89, 0.45);
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .formulario-moderno,
  .formulario-container {
    padding: 1.25rem 1rem;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    min-height: 48px;
    font-size: 16px; /* evita zoom en iOS */
  }
  
  .boton-enviar {
    min-height: 48px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .formulario-moderno,
  .formulario-container {
    padding: 1rem 0.75rem;
  }
}

/* Estilos para enlace de email - visible y clicable */
.email-link {
  color: #007BFF;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.email-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.email-link:active {
  color: #004085;
}

/* Responsive para CTAs */
@media (max-width: 768px) {
  .cta-destacado {
    padding: 2rem 1.5rem;
    margin: 2.5rem 0;
  }
  
  .cta-destacado h3 {
    font-size: 1.5rem;
  }
  
  .cta-destacado > p {
    font-size: 1rem;
  }
  
  .boton-cta-principal {
    font-size: 1.1rem;
    padding: 1rem 1.8rem;
  }
}

@media (max-width: 480px) {
  .cta-destacado {
    padding: 1.5rem 1rem;
  }
  
  .cta-destacado h3 {
    font-size: 1.3rem;
  }
  
  .cta-destacado > p {
    font-size: 0.95rem;
  }
}

/* ================== ESTILOS PARA ENLACES DE CONTACTO (Email y Teléfono) ================== */

/* Asegurar que los enlaces de contacto sean visibles en móvil */
@media (max-width: 768px) {
  .email-link,
  .telefono-link {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 1.05rem;
    /* Aumentar área táctil en móvil */
    min-height: 44px;
    line-height: 44px;
    padding: 0 0.5rem;
  }
  
  .email-link {
    color: #007BFF !important;
    text-decoration: underline !important;
    background-color: rgba(0, 123, 255, 0.1);
  }
  
  .telefono-link {
    color: #004080 !important;
    background-color: rgba(0, 64, 128, 0.1);
  }
  
  .email-link:active,
  .telefono-link:active {
    background-color: rgba(0, 123, 255, 0.2);
    transform: scale(0.98);
  }
}

@media (max-width: 480px) {
  .email-link,
  .telefono-link {
    font-size: 1.1rem;
    font-weight: 600;
    /* Área táctil aún más grande en móviles pequeños */
    min-height: 48px;
    line-height: 48px;
  }
}

/* ================== Video animación (responsive, fade-in) ================== */
.video-anim-wrap {
  margin: 2rem auto;
  max-width: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.video-anim-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}

.video-anim-wrap video {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .video-anim-wrap {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-anim-wrap {
    opacity: 1;
    transform: none;
  }
}

