/* Esto va al principio de tu archivo estilo.css */
@import url('https://fonts.googleapis.com/css2?family=Yeseva+One&display=swap');

/*
Theme Name: Catfish Aquarium Theme
Theme URI: https://catfish-aquarium.com
Author: Control Tec
Description: Tema personalizado sin frameworks, CSS puro.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: catfish-theme
*/

/* =========================================
   1. VARIABLES Y RESET
   ========================================= */
:root {
    --color-primary: #1d4ed8;
    /* Azul */
    --color-primary-dark: #1e40af;
    /* Azul oscuro hover */
    --color-accent: #eab308;
    /* Amarillo */
    --color-accent-hover: #ffc549;
    /* Amarillo oscuro */
    --color-dark: #1f2937;
    /* Gris oscuro */
    --color-light: #f3f4f6;
    /* Gris claro */
    --color-white: #ffffff;
    --color-catfish: #01012F;
    --font-main: system-ui, -apple-system, sans-serif;
    --container-width: 1366px;
    --font-display: "Yeseva One", serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-dark);
    line-height: 1.6;
    background-color: var(--color-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* =========================================
   2. UTILIDADES Y LAYOUT
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
}

.btn-outline {
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.section-title {
    font-size: 1.7rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* =========================================
   3. CABECERA (HEADER)
   ========================================= */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Barra Superior Negra */
.top-bar {
    background-color: var(--color-dark);
    color: var(--color-white);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-info a:hover {
    color: #93c5fd;
}

/* =========================================
   NAVEGACIÓN PRINCIPAL (ESCRITORIO)
   ========================================= */

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0; 
    padding: 0; 
    list-style: none; /* Quitamos los puntos de lista */
}

/* IMPORTANTE: Necesario para que el submenú flote respecto a su padre */
.nav-links li {
    position: relative;
}

.nav-links li a {
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--color-primary);
}

/* --- BOTÓN FINAL (STOCK LIST) --- */
/* CORRECCIÓN: Usamos ">" para que solo afecte al nivel principal */
.nav-links > li:last-child > a {
    background-color: var(--color-accent); /* Tu amarillo */
    color: var(--color-dark);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, background-color 0.3s;
}

.nav-links > li:last-child > a:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* =========================================
   NUEVO: ESTILOS DEL SUBMENÚ (DROPDOWN)
   ========================================= */
.nav-links li ul.sub-menu {
    display: none;       /* Oculto por defecto */
    position: absolute;  /* Flotante */
    top: 100%;           /* Justo debajo */
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Sombra elegante */
    padding: 10px 0;
    border-radius: 8px;
    z-index: 1000;
    list-style: none;
}

/* Mostrar al pasar el mouse (Hover) */
.nav-links li:hover > ul.sub-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Enlaces dentro del Submenú (Normales, sin estilo botón) */
.nav-links li ul.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #1e293b;
    white-space: nowrap; /* Texto en una línea */
    font-weight: normal; /* Peso normal */
    border-radius: 0;    /* Cuadrados */
    background: transparent;
    box-shadow: none;
}

.nav-links li ul.sub-menu li a:hover {
    background-color: #f1f5f9; /* Gris claro al pasar mouse */
    color: var(--color-primary);
    transform: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.mobile-toggle {
    display: none; /* Oculto en escritorio */
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu {
    display: none; /* Oculto por defecto */
    border-top: 1px solid #eee;
    padding: 10px 20px;
}

.mobile-menu li a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu.active {
    display: block;
}

/* Botón final en móvil */
.mobile-menu li:last-child a {
    background-color: var(--color-accent);
    color: var(--color-dark);
    font-weight: bold;
    text-align: center;
    border-radius: 2em;
    margin-top: 15px;
    padding: 12px;
    border-bottom: none;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu li:last-child a:active {
    transform: scale(0.98);
    background-color: var(--color-accent-hover);
}

/* =========================================
   CORRECCIÓN MÓVIL: Resetear estilo en submenús
   ========================================= */

/* Seleccionamos cualquier link que esté dentro de una lista anidada (submenú) 
   dentro del menú móvil. Usamos !important para asegurar que gane. */

.mobile-menu ul li:last-child a, 
.mobile-menu .sub-menu li:last-child a {
    background-color: transparent !important; /* Quitar amarillo */
    color: #4b5563 !important;                /* Color de texto normal */
    font-weight: normal !important;           /* Peso normal */
    text-align: left !important;              /* Alinear a la izquierda */
    border-radius: 0 !important;              /* Quitar bordes redondos */
    margin-top: 0 !important;                 /* Quitar margen superior */
    padding: 10px 0 !important;               /* Padding estándar de tu lista */
    box-shadow: none !important;              /* Quitar sombra */
    border-bottom: 1px solid #f3f4f6 !important; /* Recuperar la línea divisoria */
}

/* =========================================
   MEJORA VISUAL: Submenús en Móvil (Jerarquía)
   ========================================= */

/* 1. Contenedor del submenú (el <ul>) */
.mobile-menu .sub-menu {
    background-color: #f8fafc; /* Fondo ligeramente diferente (gris muy claro) */
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin: 0;   /* Quitamos márgenes extra */
    padding: 0;  /* Quitamos padding del contenedor */
}

/* 2. Los enlaces del submenú (los <a>) */
.mobile-menu .sub-menu li a {
    position: relative; /* Necesario para posicionar la viñeta */
    padding-left: 40px !important; /* Indentación grande para dejar espacio a la viñeta */
    font-size: 0.95rem; /* Un poco más pequeños que el menú principal */
    color: #64748b;     /* Un gris un poco más suave */
    border-bottom-color: #e2e8f0; /* Líneas divisorias más sutiles */
}

/* =========================================
   MEJORA VISUAL: Íconos Personalizados (Pez y Huella)
   ========================================= */

/* 1. Configuración base para la posición de los íconos */
/* Esto aplica a TODOS los enlaces del submenú */
.mobile-menu .sub-menu li a::before {
    /* Ya no ponemos "content" aquí, lo pondremos individualmente abajo */
    position: absolute;
    left: 15px;  /* Un poco más a la izquierda para que el emoji respire */
    top: 50%;
    transform: translateY(-50%) scale(1.2); /* Centrado y un poquito más grande */
    font-size: 1rem;
    opacity: 1;  /* Emojis a todo color */
    line-height: 1;
}

/* 2. Ícono específico para PECES (ID 36) */
/* Usamos el emoji de pez 🐟 */
#menu-item-195 > a::before {
    content: "🐟";
}

#menu-item-573 > a::before {
    content: "🐟";
}

/* 3. Ícono específico para OTRAS ESPECIES (ID 32) */
/* Usamos el emoji de huellas 🐾 */
#menu-item-194 > a::before {
    content: "🐾";
}

#menu-item-575 > a::before {
    content: "🐾";
}

/* IMPORTANTE: Asegurar el espacio a la izquierda para los íconos */
.mobile-menu .sub-menu li a {
    padding-left: 45px !important; /* Espacio suficiente para el emoji */
    position: relative;
}

/* RECORDATORIO: Mantener esta corrección que hicimos en el paso anterior
   para que el último elemento (huella) no se rompa */
.mobile-menu .sub-menu li:last-child a {
    padding-left: 45px !important;
    text-align: left !important;
}

/* --- CORRECCIÓN FINAL: Espaciado del último ítem del submenú --- */

/* Forzamos que el último elemento del submenú tenga el hueco para la flecha */
.mobile-menu .sub-menu li:last-child a {
    padding-left: 40px !important; /* Recuperamos el espacio de 40px */
    text-align: left !important;   /* Aseguramos que el texto vaya a la izquierda */
}

/* =========================================
   4. SECCIONES DE LA PÁGINA
   ========================================= */

/* Hero Section */
.hero-section {
    height: 70vh;
    min-height: 500px;
    /*background-image: url('https://placehold.co/1920x1080/2d3748/e2e8f0?text=Fondo+Hero');*/
    background-color: #00005e;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    display: flex;
    align-items: center;
    position: relative;
}

/* =========================================
   HERO OVERLAY CON DOBLE MARCA DE AGUA
   ========================================= */

.hero-overlay {
    /* Mantenemos tus estilos de posición y centrado de texto */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    /* --- AQUÍ ESTÁ LA MAGIA DE LOS FONDOS MÚLTIPLES --- */
    /* Se definen en orden de pila: el primero es el que está más al frente */
    background:
        /* CAPA 1 (Frente): El filtro oscuro original.
           Usamos linear-gradient para poder apilarlo con imágenes. */
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),

        /* CAPA 2: Imagen Arriba Izquierda */
        url('https://demowp.catfish-aquarium.com/wp-content/uploads/2026/02/paiche-white.png') /* URL de tu imagen */
        top 20px left -100px / /* Posición (un poco separada del borde) */
        600px auto          /* Tamaño (ancho fijo, alto automático) */
        no-repeat,          /* No repetir */

        /* CAPA 3 (Fondo): Imagen Abajo Derecha */
        url('https://demowp.catfish-aquarium.com/wp-content/uploads/2026/02/guacamayo-white.png') /* URL de tu segunda imagen */
        bottom 0px right 20px / /* Posición */
        550px auto               /* Tamaño (quizás esta un poco más grande) */
        no-repeat;               /* No repetir */

    /* Aseguramos que el texto siga siendo blanco */
    color: var(--color-white);
}

/* OPCIONAL: Ajuste para celulares para que no tapen mucho */
@media (max-width: 768px) {
    .hero-overlay {
        background-size:
            auto, /* El gradiente se ajusta solo */
            250px auto, /* Imagen arriba más pequeña en móvil */
            180px auto; /* Imagen abajo más pequeña en móvil */
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Value Props (Iconos) */
.features-section {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: #dbeafe;
    /* Azul muy claro */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 2.5rem;
    color: var(--color-catfish);
}

/* Categorías */
.categories-section {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: var(--color-white);
}

/* Instalaciones */
.facilities-section {
    position: relative;
    overflow: visible; /* Evita que el pez se salga de su caja */
    z-index: 1;
    padding: 5rem 0;
}
.testimonials-section {
    position: relative;
    overflow: hidden; /* Evita que el pez se salga de su caja */
    z-index: 1;
    padding: 5rem 0;
}

/* Blindar el contenido (textos, fotos, tarjetas) para que siempre esté arriba */
.facilities-section > .container,
.testimonials-section > .container {
    position: relative;
    z-index: 10;
}

/* 2. Marca de Agua: Facilities (Arriba a la Izquierda) */
.facilities-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;  /* Tamaño del adorno */
    height: 400px;
    background-image: url('https://demowp.catfish-aquarium.com/wp-content/uploads/2026/02/pez01.png'); /* REEMPLAZA AQUÍ */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top left;
    opacity: 0.3; /* 5% de opacidad (súbela a 0.1 o 0.15 si no se nota) */
    z-index: 0;    /* Detrás del contenido */
    pointer-events: none;
    transform: rotate(15deg); /* Le da un giro dinámico */
}

/* 3. Marca de Agua: Testimonios (Abajo a la Derecha) */
.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -200px;
    width: 600px; /* Este un poco más grande para variar */
    height: 600px;
    background-image: url('https://demowp.catfish-aquarium.com/wp-content/uploads/2026/02/mono.png'); /* REEMPLAZA AQUÍ */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.3; /* Opacidad sutil */
    z-index: 0;
    pointer-events: none;
    transform: rotate(-10deg);
}

/* 4. Ajustes para Celulares (Para que no estorben la lectura) */
@media (max-width: 768px) {
    .facilities-section::before {
        width: 200px;
        height: 200px;
        top: -10px;
        left: -20px;
        background-image: none;
    }
    .testimonials-section::after {
        width: 250px;
        height: 250px;
        bottom: -20px;
        right: -20px;
        background-image: none;
    }
}

.facilities-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.facilities-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

/* CTA Newsletter */
.cta-section {
    padding: 5rem 0;
    background-color: var(--color-dark);
    color: var(--color-white);
    text-align: center;
}

.newsletter-form {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 12px;
    border-radius: 8px;
    border: none;
    min-width: 250px;
}

/* Testimonios */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--color-light);
    padding: 2rem;
    border-radius: 12px;
}

/* Footer */
.site-footer {
    background-color: var(--color-catfish);
    /* Casi negro */
    color: #9ca3af;
    padding: 4rem 0 200px 0;
    position:relative;
    overflow: hidden;
    z-index: 1;
}

/* Esta es la imagen fantasma del footer */
.site-footer::before {
    content: '';
    position: absolute;
    bottom: 0px; /* Lo bajamos un poco para que se corte con estilo */
    left: 0px;   /* Pegado a la izquierda como en tu ejemplo */
    width: 100%;  /* Tamaño del pez gigante */
    height: 100vh;
    background-image: url('https://demowp.catfish-aquarium.com/wp-content/uploads/2026/02/bg-piepage-1.png'); /* REEMPLAZA AQUÍ */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
    opacity: 1; /* ESTA ES LA MAGIA: 5% de opacidad para el efecto negativo */
    z-index: 0;   /* Lo manda detrás del texto */
    pointer-events: none; /* Evita que estorbe al hacer clic en enlaces */
}

/* Asegurar que el contenido del footer esté por encima */
.site-footer .container{
    position: relative;
    z-index: 10;
}

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

.footer-title {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Estilos extra para links del footer */
.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* El grid de testimonios ya estaba definido, pero asegúrate de tenerlo */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--color-light);
    /* Fondo gris claro */
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Estilos para el Logo de Imagen */
.custom-logo-link img {
    max-height: 70px;
    /* Ajusta este número según el tamaño que desees */
    width: auto;
    /* Mantiene la proporción */
    display: block;
}

/* Ajuste por si usas el texto de respaldo */
.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
}

/* =========================================
   VIDEO FULL WIDTH
   ========================================= */
.video-section-full {
    width: 100%;
    /* Ocupa todo el ancho de la pantalla */
    position: relative;
    /* Necesario para posicionamiento */
    line-height: 0;
    /* Elimina espacios blancos extraños debajo del video */
    overflow: hidden;
    /* Evita barras de scroll horizontales si algo falla */
    margin: 0;
    /* Quita márgenes externos */
    padding: 0;
    /* Quita rellenos internos */
}

.bg-video {
    width: 100%;
    /* Fuerza al video a estirarse horizontalmente */
    height: auto;
    /* La altura se ajusta sola para no deformar la imagen */
    display: block;
    /* Comportamiento de bloque para quitar espacios */
    object-fit: cover;
    /* Asegura que cubra el área (útil si decidieras fijar altura) */
}

/* =========================================
   5. RESPONSIVE (MÓVIL)
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Ocultar menú escritorio */
    .mobile-toggle {
        display: block;
    }

    /* Mostrar botón hamburguesa */

    .facilities-split {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
    }
}

/* =========================================
   GRID DE ESPECIES (HOME)
   ========================================= */

.home-species-section {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.section-header-center {
    text-align: center;
    margin-bottom: 3rem;
}

.species-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Tarjeta */
.species-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Imagen de tarjeta */
.card-img-link {
    display: block;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.stock-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #10b981;
    /* Verde */
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Contenido de tarjeta */
.card-content {
    padding: 1.5rem;
}

.card-family {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.card-title a {
    color: #111827;
    text-decoration: none;
}

.card-title a:hover {
    color: var(--color-primary);
}

.card-subtitle {
    font-size: 0.95rem;
    color: #4b5563;
    font-weight: normal;
    margin-bottom: 1rem;
}

/* Metadatos (Origen / Talla) */
.card-meta {
    display: flex;
    justify-content: space-between;
    background-color: #f3f4f6;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #4b5563;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-btn {
    display: block;
    text-align: center;
    padding: 0.75rem;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.card-btn:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* Estilos Base de la Etiqueta */
.stock-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    /* Texto blanco por defecto */
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Variantes de Color */
.stock-verde {
    background-color: #10b981;
    /* Verde Esmeralda */
}

.stock-amarillo {
    background-color: #f59e0b;
    /* Ambar / Naranja */
    color: #fff;
    /* O puedes poner color oscuro #92400e si prefieres contraste */
}

.stock-rojo {
    background-color: #ef4444;
    /* Rojo */
}

/* =========================================
   FICHA DE ESPECIE (SINGLE) - ESTILOS FINALES
   ========================================= */

/* --- 1. Estructura y Layout --- */
.species-detail-wrapper {
    padding: 3rem 0;
    background-color: #fff;
}

.species-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    /* Espacio generoso entre foto e info */
    align-items: start;
}

/* --- 2. Breadcrumbs (Migas de Pan) --- */
.species-breadcrumbs {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0;
    /* Pegado al siguiente bloque */
}

.species-breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.species-breadcrumbs li+li::before {
    content: "/";
    margin: 0 0.75rem;
    color: #d1d5db;
}

.species-breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.species-breadcrumbs a:hover {
    color: var(--color-primary);
    /* Tu azul principal */
}

/* --- 3. Galería de Imágenes --- */
.species-gallery {
    /*position: sticky;*/
    top: 2rem;
    /* Se queda fija al hacer scroll */
}

.main-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.main-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* Badge CITES sobre la foto */
.cites-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #ef4444;
    /* Rojo intenso */
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Miniaturas */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.thumb-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s;
}

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

.thumb-item:hover,
.thumb-item.active-thumb {
    opacity: 1;
    border-color: var(--color-primary);
}

/* --- 4. Información del Pez --- */
.species-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

.family-tag {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.species-title {
    font-size: 2.5rem;
    font-weight: 800;
    font-style: italic;
    color: #111827;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
}

.species-common-name {
    font-size: 1.25rem;
    font-weight: 500;
    color: #4b5563;
    margin: 0 0 1.5rem 0;
}

/* Etiquetas de Estado (Stock, Origen) */
.status-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Colores de los Badges (IMPORTANTE) */
.badge-stock {
    background-color: #d1fae5;
    color: #065f46;
}

/* Verde (Disponible) */
.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

/* Amarillo (Pocas Unidades) */
.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Rojo (Agotado) */
.badge-origin {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Azul (Wild Caught) */

.species-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 2rem;
}

/* --- 5. Parámetros Técnicos (Grid) --- */
.tech-specs-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.params-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.param-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.param-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.param-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.param-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

/* --- 6. Tabla de Empaque (Caja Azul) --- */
.packing-info-box {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.packing-info-box h3 {
    color: #1e40af;
    font-size: 1rem;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.packing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.packing-table th {
    text-align: left;
    color: #3b82f6;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dbeafe;
}

.packing-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #dbeafe;
    color: #1e3a8a;
}

.packing-table tr:last-child td {
    border-bottom: none;
}

.packing-note {
    font-size: 0.75rem;
    color: #2563eb;
    font-style: italic;
    margin-top: 1rem;
}

/* --- 7. Botones de Acción --- */
.action-buttons {
    display: flex;
    gap: 1rem;
}

.action-buttons .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    /* Un tono más oscuro */
    border-color: #1d4ed8;
}

.btn-outline {
    background-color: white;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* --- 8. Sección Descripción Inferior --- */
.description-section {
    padding: 4rem 0;
    background-color: #fff;
    border-top: 1px solid #e5e7eb;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.content-prose {
    max-width: 800px;
    color: #4b5563;
    line-height: 1.8;
}

.content-prose p {
    margin-bottom: 1.5rem;
}

/* Caja de Alerta CITES (Amarilla) */
.cites-alert-box {
    margin-top: 2rem;
    background-color: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: start;
    gap: 1rem;
}

.cites-alert-box ion-icon {
    font-size: 1.5rem;
    color: #d97706;
}

.cites-alert-box h4 {
    margin: 0 0 0.5rem 0;
    color: #92400e;
}

.cites-alert-box p {
    margin: 0;
    color: #b45309;
    font-size: 0.95rem;
}

/* --- 9. Productos Relacionados --- */
.related-section {
    background-color: #f9fafb;
    padding: 4rem 0;
    border-top: 1px solid #e5e7eb;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e5e7eb;
}

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

.related-img {
    height: 180px;
    overflow: hidden;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.related-info {
    padding: 1rem;
}

.related-info h4 {
    margin: 0.25rem 0;
    color: #111827;
    font-size: 1.1rem;
}

.related-info span {
    display: block;
}

/* --- Responsive (Móvil) --- */
@media (max-width: 768px) {
    .species-columns {
        grid-template-columns: 1fr;
        /* Una sola columna */
        gap: 2rem;
    }

    .action-buttons {
        flex-direction: column;
        /* Botones uno debajo de otro */
    }

    .species-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   1. ESTILOS DE CABECERA DE PÁGINA (HERO SECTION)
   ========================================================================== */

/* --- Estructura Base (Compartida) --- */
.page-header-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    margin-bottom: 0;
    width: 100%;
}

.header-title {
    font-size: 3.5rem;
    /* Grande e impactante */
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Sombra para leer mejor sobre fotos */
}

.header-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 800px;
    margin: 1.5rem auto 0;
    color: #f3f4f6;
    /* Blanco suave */
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* --- Variantes de Fondo --- */

/* A. Opción Sólida (Por defecto) */
.header-solid {
    height: 300px;
    background-color: var(--color-primary);
    /* Tu azul corporativo */
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    /* Degradado profesional */
}

/* B. Opción con Imagen (Personalizada) */
.header-with-image {
    height: 400px;
    /* Más alto para lucir la foto */
    background-size: cover;
    background-repeat: no-repeat;
    /* Efecto Parallax de imagen fija */
    background-attachment: fixed;
}

/* Posiciones de imagen (Controlado por ACF) */
.bg-center {
    background-position: center center;
}

.bg-top {
    background-position: top center;
}

.bg-bottom {
    background-position: bottom center;
}

/* Capa oscura (Overlay) */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.7);
    /* Color oscuro al 60% de opacidad */
    z-index: 1;
}

/* Utilidad para poner texto encima del overlay */
.relative.z-10 {
    position: relative;
    z-index: 10;
}

/* Responsive Móvil para Header */
@media (max-width: 768px) {
    .header-with-image {
        height: 350px;
    }

    .header-solid {
        height: 200px;
    }

    .header-title {
        font-size: 2rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }
}


/* ==========================================================================
   2. ESTILOS GENERALES DE PÁGINA (PAGE CONTENT)
   ========================================================================== */

.standard-page-content {
    padding: 0rem 0;
    /* Espaciado generoso arriba y abajo */
    background-color: #ffffff;
    min-height: 50vh;
}

/* --- Tipografía del Editor Visual (Gutenberg) --- */
/* Esta clase .content-prose envuelve todo lo que escribas en el admin */
.content-prose {
    max-width: var(--container-width);
    /* Ancho de lectura cómodo, no ocupa el 100% de la pantalla */
    margin: 0 auto;
    /* Centrado */
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    /* Gris oscuro para lectura */
}

/* Estilos para elementos dentro del editor */
.content-prose h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.content-prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content-prose p {
    margin-bottom: 1.5rem;
}

.content-prose ul,
.content-prose ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.content-prose li {
    margin-bottom: 0.75rem;
}

/* Citas (Blockquote) */
.content-prose blockquote {
    border-left: 5px solid var(--color-primary);
    background-color: #f9fafb;
    padding: 1.5rem 2rem;
    font-style: italic;
    font-size: 1.2rem;
    color: #4b5563;
    margin: 2.5rem 0;
    border-radius: 0 12px 12px 0;
}

/* Imágenes dentro del contenido */
.content-prose figure {
    margin: 1rem 0;
}

.content-prose img {
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: auto;
    max-width: 100%;
}


/* ==========================================================================
   3. ESTILOS ESPECIALES "SOBRE NOSOTROS" (BLOQUES)
   ========================================================================== */

/* --- A. Sección Historia (Columnas Texto + Foto) --- */
/* Añade la clase 'about-history-section' al bloque de Columnas */
.about-history-section {
    align-items: center !important;
    /* Fuerza alineación vertical centrada */
}

.about-history-section p {
    text-align: justify !important;
    /* Fuerza alineación vertical centrada */
}

.about-history-section h2 {
    margin: 0px 0px;
    /* Fuerza alineación vertical centrada */
}

/* Firma del CEO (Bloque de medios y texto o columnas anidadas) */
.ceo-signature {
    /*margin-top: 2rem;*/
    display: flex;
    align-items: center;
    /*gap: 1rem;*/
    /*padding-top: 1.5rem;*/
    border-top: 1px solid #e5e7eb;
}

.ceo-signature img {
    border-radius: 15%;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.ceo-info {
    margin-bottom: 0px;
    padding: 0px 0px;
}

.ceo-info strong {
    display: block;
    color: #111827;
    font-size: 1.1rem;
}

.ceo-info p {
    font-size: 0.8rem;
    /*color: var(--color-primary);*/
    /*font-weight: 700;*/
    /*text-transform: uppercase;*/
    margin-bottom: 0px;
}

/* =========================================
   TARJETA FLOTANTE "AÑOS DE EXPERIENCIA"
   ========================================= */

/* 1. Contenedor relativo: Necesario para que la tarjeta se posicione respecto a la imagen */
.image-with-floating-card {
    position: relative;
    display: inline-block;
    /* Se ajusta al tamaño de la imagen */
    margin-bottom: 30px;
    /* Espacio extra abajo para la tarjeta */
}

.image-with-floating-card img {
    display: block;
    /* Elimina espacios extraños debajo de la imagen */
    border-radius: 12px;
    /* Opcional: redondea la imagen principal también */
}

/* 2. La Tarjeta Flotante */
.floating-experience-card {
    background-color: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Posicionamiento absoluto para que se superponga */
    position: absolute;
    bottom: -30px;
    /* Qué tanto baja de la imagen */
    right: -30px;
    /* Qué tanto se sale a la derecha */

    /* Estilo del borde azul derecho */
    border-left: 6px solid var(--color-primary);
    /* Usa tu color azul principal */

    text-align: left;
    z-index: 10;
    /* Asegura que esté por encima de la imagen */
    min-width: 200px;
}

/* Estilo del Número (15+) */
.floating-experience-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    /* Número azul */
    margin: 0;
    line-height: 0.5;
}

/* Estilo del Texto (AÑOS DE EXPERIENCIA) */
.floating-experience-card p {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    /* Gris oscuro */
    margin: 0.5rem 0 0 0;
    letter-spacing: 0.05em;
}




/* --- B. Grid de Estadísticas (Números) --- */
/* Añade la clase 'stats-grid' al bloque de Grupo */
/* --- A. Sección Estadísticas (Fondo Azul) --- */
.stats-grid {
    background-color: var(--color-primary-dark);
    /* AZUL OSCURO (Como tu captura) */
    color: #ffffff;
    padding: 4rem 2rem;
    border-radius: 16px;
    margin: 4rem 0;
    text-align: center;

    /* --- EL TRUCO DE MAGIA (BREAKOUT) --- */
    width: 100vw;
    /* Ancho de toda la ventana */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    /* Mueve el borde izq al inicio de pantalla */
    margin-right: -50vw;
    /* Mueve el borde der al final de pantalla */
    border-radius: 0;
    /* En full width quitamos las esquinas redondas */
}

/* --- CENTRAR EL CONTENIDO INTERNO --- */
/* Esto evita que los números se vayan a los extremos en pantallas gigantes */
.stats-grid>* {
    max-width: var(--container-width);
    /* El mismo ancho que tu contenedor principal */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    /* Margen de seguridad en móviles */
    padding-right: 15px;
}

/* Estilo para el Ícono dentro de Stats */
.stats-grid ion-icon {
    font-size: 3.5rem;
    /* Tamaño grande */
    color: var(--color-accent-hover);
    /* AMARILLO */
    margin-bottom: 0rem;
    stroke-width: 10px;
    /* Hacerlos más gorditos si es necesario */
}

h3.stat-number {
    display: block;
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 700;
    /* Número blanco */
    line-height: 1;
    margin: 0.5rem 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #bfdbfe;
    /* Azul clarito para el texto */
    letter-spacing: 0.05em;
}


/* --- B. Tarjetas de Proceso (Iconos en Círculo) --- */
.process-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    /* Centrado para que el ícono quede bien */
    transition: transform 0.3s;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.process-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Estilo para el Ícono dentro de Proceso (Círculo) */
.process-card ion-icon {
    background-color: #dbeafe;
    /* Fondo círculo celeste */
    color: #2563eb;
    /* Icono azul fuerte */
    font-size: 2.5rem;
    padding: 1rem;
    /* Espacio alrededor */
    border-radius: 50%;
    /* Hacemos que sea redondo */
    margin-bottom: 1.5rem;
    display: inline-block;
}

.process-card h3 {
    font-size: 1.35rem;
    color: #111827;
    margin-bottom: 1rem;
    font-weight: 800;
}

/* --- SECCIÓN PROCESO DE CALIDAD (WORDPRESS EDITOR) --- */

/* 1. Espaciado general de la sección */
.seccion-calidad {
    padding-top: 4rem;
    padding-bottom: 5rem;
    background-color: #ffffff;
    /* Fondo blanco */
}

/* 2. Estilo de la Tarjeta (El recuadro blanco) */
.tarjeta-proceso {
    background-color: #ffffff;
    border-radius: 16px;
    /* Bordes redondeados */
    padding: 2.5rem 2rem;
    /* Espacio interno */
    text-align: center;
    /* Todo centrado */
    height: 100%;
    /* Para que todas midan lo mismo */

    /* La Sombra Suave */
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f3f4f6;
    /* Borde muy sutil opcional */
}

/* Efecto al pasar el mouse (Hover) */
.tarjeta-proceso:hover {
    transform: translateY(-5px);
    /* Sube un poquito */
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

/* 3. El Círculo Azul del Ícono */
.icono-azul {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    /* Tamaño del círculo */
    height: 80px;
    background-color: #eff6ff;
    /* Azul muy pálido de fondo */
    border-radius: 50%;
    /* Lo hace redondo */
    margin-bottom: 1.5rem;
}

/* El Ícono dentro del círculo */
.icono-azul ion-icon {
    font-size: 2.5rem;
    /* Tamaño del dibujo */
    color: #3b82f6;
    /* Azul vibrante */
    --ionicon-stroke-width: 32px;
    /* Grosor de línea */
}

/* 4. Títulos dentro de la tarjeta (H3) */
.tarjeta-proceso h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    /* Gris oscuro casi negro */
    margin-bottom: 1rem;
    margin-top: 0;
}

/* 5. Texto descriptivo */
.tarjeta-proceso p {
    font-size: 0.95rem;
    color: #4b5563;
    /* Gris medio */
    line-height: 1.6;
}

/* --- C. SECCIÓN INSTALACIONES (FOTOS) --- */

/* 1. Limpieza general */
.seccion-instalaciones {
    padding: 4rem 0;
    text-align: center;
}

.seccion-instalaciones h2 {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 3rem;
    font-weight: 800;
}

/* 2. La Rejilla (Convierte la lista vertical en 3 columnas) */
.grid-instalaciones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columnas */
    gap: 1.5rem;
    /* Espacio entre fotos */
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* 3. La Tarjeta (El bloque de Fondo/Cover) */
/* Esto fuerza a que todas tengan el MISMO tamaño exacto */
.wp-block-cover.tarjeta-instalacion {
    height: 250px !important;
    /* Altura fija */
    min-height: 250px !important;
    margin-bottom: 0 !important;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Efecto al pasar el mouse (Zoom y sombra) */
.wp-block-cover.tarjeta-instalacion:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* 4. La Imagen (Para que no se deforme) */
.wp-block-cover.tarjeta-instalacion img.wp-block-cover__image-background {
    object-fit: cover !important;
    height: 100% !important;
    width: 100% !important;
}

/* 5. El Filtro Azul (Overlay) */
/* El bloque Cover ya trae un overlay, aquí lo forzamos al azul corporativo */
.wp-block-cover.tarjeta-instalacion::after {
    background-color: #1e3a8a !important;
    /* Azul oscuro */
    opacity: 0.5 !important;
    /* Transparencia al 50% */
    transition: opacity 0.3s ease;
}

.wp-block-cover.tarjeta-instalacion:hover::after {
    opacity: 0.3 !important;
    /* Se aclara al pasar el mouse */
}

/* 6. El Texto (Centrado y blanco) */
.tarjeta-instalacion p,
.tarjeta-instalacion h2,
.tarjeta-instalacion h3 {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 10;
    margin: 0;
}

/* --- MÓVIL (Celulares) --- */
@media (max-width: 768px) {
    .grid-instalaciones {
        grid-template-columns: 1fr !important;
        /* 1 sola columna */
        gap: 1rem;
    }
}

/* --- D. SECCIÓN FINAL CTA (Llamada a la Acción) --- */

.cta-final {
    background-color: var(--color-catfish);
    /* Azul noche profundo */
    padding: 5rem 1rem;
    /* Bastante aire arriba y abajo */
    text-align: center;
    color: #ffffff;
    margin-top: 0;
    /* Pegado a la sección anterior */

    /* --- EL TRUCO DE MAGIA (BREAKOUT) --- */
    width: 100vw;
    /* Ancho de toda la ventana */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    /* Mueve el borde izq al inicio de pantalla */
    margin-right: -50vw;
    /* Mueve el borde der al final de pantalla */
    border-radius: 0;
    /* En full width quitamos las esquinas redondas */
}

.cta-final h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.cta-final p {
    font-size: 1.1rem;
    color: #94a3b8;
    /* Gris azulado claro para el subtítulo */
    max-width: 700px;
    margin: 0 auto 3rem auto;
    /* Centrado y separado de los botones */
    line-height: 1.6;
}

/* --- ESTILOS DE LOS BOTONES --- */

/* Estilo general para ambos botones */
.wp-block-button__link {
    padding: 0.8rem 2rem !important;
    /* Botones más gorditos */
    font-weight: 700 !important;
    border-radius: 50px !important;
    /* Redondos como pastilla */
    font-size: 1rem !important;
    transition: all 0.3s ease;
}

/* Botón 1: Amarillo (Stock List) */
.btn-cta-amarillo .wp-block-button__link {
    background-color: #fbbf24 !important;
    /* Amarillo */
    color: #0f172a !important;
    /* Texto oscuro */
    border: 2px solid #fbbf24 !important;
}

.btn-cta-amarillo .wp-block-button__link:hover {
    background-color: #f59e0b !important;
    /* Amarillo más oscuro */
    border-color: #f59e0b !important;
    transform: translateY(-3px);
}

/* Botón 2: Borde Blanco (Ventas) */
.btn-cta-borde .wp-block-button__link {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

.btn-cta-borde .wp-block-button__link:hover {
    background-color: #ffffff !important;
    color: #0f172a !important;
    /* Texto oscuro al pasar el mouse */
    transform: translateY(-3px);
}

/* --- DISEÑO STOCK LIST (ESTILO DEMO) --- */

.stock-demo-wrapper {
    background-color: #ffffff;
    /* Fondo blanco limpio */
    padding: 3rem 0 8rem;
    font-family: 'Inter', sans-serif;
    /* O la fuente de tu tema */
}

/* Cabecera Simple */
.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.demo-header .header-titles {
    margin-bottom: 20px;
}

.demo-header h1 {
    font-size: 1.8rem;
    color: #111827;
    font-weight: 700;
}

/* Buscador Minimalista */
.demo-search {
    position: relative;
    width: 300px;
}

.demo-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #374151;
}

.demo-search ion-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* --- TABLA LIMPIA (CLEAN TABLE) --- */
.table-responsive-clean {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    /* Redondea las esquinas */
    overflow-x: auto;
}

.clean-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

/* Encabezados (Gris, Mayúsculas, Pequeño) */
.clean-table thead th {
    background-color: #f9fafb;
    /* Gris muy claro */
    color: #6b7280;
    /* Texto gris medio */
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
    text-align: left;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

/* Celdas del Cuerpo */
.clean-table tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    /* Línea separadora sutil */
    vertical-align: middle;
    font-size: 0.95rem;
}

/* COLUMNAS ESPECÍFICAS (Tipografía) */
.td-code {
    color: #6b7280;
    font-family: monospace;
    font-size: 0.9rem;
}

/* Código gris */
.td-family {
    color: #6b7280;
}

/* Familia gris */
.td-sci {
    color: #111827;
}

/* Científico Negro Oscuro */
.td-common {
    color: #4b5563;
}

/* Común Gris Oscuro */
.td-size {
    color: #6b7280;
}

/* Talla Gris */

/* --- PASTILLAS DE ESTADO (BADGES) --- */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    /* Forma de píldora */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
}

/* Colores según Estado (Igual a la foto) */
.bg-alto {
    background-color: #dcfce7;
    color: #166534;
}

/* Verde */
.bg-medio {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Azul */
.bg-bajo {
    background-color: #fef9c3;
    color: #854d0e;
}

/* Amarillo */
.bg-limitado {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Rojo */
.bg-default {
    background-color: #f3f4f6;
    color: #374151;
}

/* Gris */

/* --- ACCIÓN (BOTÓN COTIZAR) --- */
.quote-toggle {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    user-select: none;
    display: inline-block;
}

/* Estado Normal: "Cotizar" azul */
.txt-cotizar {
    color: #2563eb;
    /* Azul Vibrante */
    transition: color 0.2s;
}

.quote-toggle:hover .txt-cotizar {
    color: #1d4ed8;
    text-decoration: underline;
}

.txt-added {
    display: none;
}

/* Oculto por defecto */

/* Estado Seleccionado: "Listo" verde */
.quote-toggle.selected .txt-cotizar {
    display: none;
}

.quote-toggle.selected .txt-added {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #16a34a;
    /* Verde éxito */
    display: block;
}

/* --- BANDEJA FLOTANTE (Igual que el anterior) --- */
.sticky-tray {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: #111827;
    padding: 1rem;
    z-index: 999;
    transition: bottom 0.4s ease;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.sticky-tray.visible {
    bottom: 0;
}

.tray-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.count-circle {
    background: #fbbf24;
    color: #111827;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-right: 10px;
}

.btn-action {
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 10px;
}

.btn-wa {
    background: #22c55e;
    color: white;
}

.btn-mail {
    background: white;
    color: #111827;
}

/* Agrega o reemplaza esto en la sección de Bandeja Flotante */

.tray-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.tray-texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tray-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Divisor visual */
.divider-vertical {
    width: 1px;
    height: 30px;
    background-color: #374151;
    /* Gris oscuro sobre fondo negro */
    margin: 0 5px;
}

/* Botón Excel (Principal) */
.btn-excel {
    background-color: #10b981;
    /* Verde Excel */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: transform 0.2s;
}

.btn-excel:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Botones Icono (WhatsApp / Mail) */
.btn-icon-only {
    background: transparent;
    border: 2px solid #4b5563;
    color: #9ca3af;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.btn-wa:hover {
    border-color: #25D366;
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.btn-mail:hover {
    border-color: white;
    color: white;
}

/* Ajuste móvil */
@media (max-width: 600px) {
    .btn-excel span {
        display: none;
    }

    /* Ocultar texto "Descargar Excel" si no cabe */
    .tray-texts small {
        display: none;
    }
}

/* --- ESTILOS DEL INPUT DE CANTIDAD --- */

/* La celda de cantidad */
.td-qty {
    text-align: center;
}

/* El input numérico */
.input-qty {
    width: 70px;
    /* Ancho pequeño */
    padding: 6px 4px;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-weight: 700;
    color: #374151;
    font-size: 0.95rem;
    transition: all 0.2s;
}

/* Quitar flechitas del input number (Opcional, para que se vea más limpio) */
.input-qty::-webkit-inner-spin-button,
.input-qty::-webkit-outer-spin-button {
    opacity: 1;
    /* Déjalas si quieres que puedan subir/bajar con clic */
}

.input-qty:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Estado "Seleccionado" (Visualmente ayuda saber qué filas ya pediste) */
.stock-row:has(.selected) {
    background-color: #f0fdf4;
    /* Fondo verde muy pálido en toda la fila */
}

/* Si tu navegador no soporta :has (muy viejos), no pasa nada, solo es decorativo */

/* --- ESTILOS STOCK LIST (CORRECCIÓN FINAL) --- */

/* Ajustes Generales (Escritorio) */
.input-qty {
    width: 90px;
    padding: 8px;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.td-action {
    text-align: center;
}

/* --- CORRECCIÓN FINAL MÓVIL (SIN SCROLL HORIZONTAL) --- */
@media (max-width: 768px) {

    /* 1. CONTENEDOR MAESTRO */
    .table-responsive-clean {
        width: 100%;
        overflow-x: hidden;
        /* Prohibido salir de la pantalla */
        border: none;
        padding: 0 4px;
        box-sizing: border-box;
    }

    /* 2. FORZAR ESTRUCTURA DE BLOQUE (Romper la tabla) */
    .stock-table-mobile,
    .stock-table-mobile tbody,
    .stock-table-mobile tr,
    .stock-table-mobile td {
        display: block;
        box-sizing: border-box;
        /* Vital para que el padding no sume ancho extra */
    }

    .stock-table-mobile thead {
        display: none;
    }

    .clean-table {
        min-width: auto;
    }

    /* Ocultar cabeceras */

    /* 3. LA TARJETA (FILA) */
    .stock-table-mobile tr.stock-row {
        background: #fff;
        border-radius: 12px;
        margin-bottom: 1.5rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
        border: 1px solid #e2e8f0;
        position: relative;
        width: 100%;
    }

    /* 4. CELDAS DE DATOS (FLEXBOX CONTROLADO) */
    .stock-table-mobile td {
        display: flex;
        justify-content: space-between;
        /* Etiqueta a la Izq | Dato a la Der */
        align-items: center;
        /* Alineación vertical centrada */
        /*padding: 12px 15px;*/
        border-bottom: 1px solid #f1f5f9;
        text-align: right;
        min-height: 40px;
        width: 100%;
    }

    /* ETIQUETA (IZQUIERDA) */
    .stock-table-mobile td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #94a3b8;
        font-size: 0.75rem;
        text-transform: uppercase;
        flex-shrink: 0;
        /* La etiqueta NUNCA se encoge */
        margin-right: 20px;
        /* Espacio mínimo entre etiqueta y dato */
        text-align: left;
        width: 40%;
        /* Opcional: darle un ancho fijo para alinear todo */
    }

    /* EL DATO (DERECHA) - Aquí está la magia anti-desborde */
    .stock-table-mobile td {
        /* Esto afecta al texto dentro del td (el valor) */
        word-wrap: break-word;
        word-break: break-word;
        /* Romper palabras largas si es necesario */
        overflow-wrap: break-word;
        max-width: 100%;
        /* No pasar del 100% */
    }

    /* 5. NOMBRE CIENTÍFICO (DESTACADO) */
    /* Lo ponemos en bloque para que tenga más espacio */
    .td-sci {
        flex-direction: column;
        /* Etiqueta arriba, Nombre abajo */
        align-items: flex-start !important;
        text-align: left !important;
        background-color: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }

    .td-family,
    .td-code,
    .td-common,
    .td-size,
    .td-status {
        flex-direction: column;
        /* Etiqueta arriba, Nombre abajo */
        align-items: flex-start !important;
        text-align: left !important;
        /*background-color: #f8fafc;*/
        border-bottom: 1px solid #e2e8f0;
    }

    .td-sci::before {
        margin-bottom: 5px;
        width: 100%;
    }

    .td-sci strong {
        font-size: 1.1rem;
        color: #0f172a;
        display: block;
        width: 100%;
    }

    /* 6. ZONA DE ACCIÓN (CANTIDAD Y BOTÓN) */
    /* Usamos GRID para colocarlos lado a lado perfectamente */

    /* Primero ocultamos el td original de Acción vacío si quedara alguno */
    .stock-table-mobile td.td-action[data-label="ACCIÓN"] {
        border-bottom: none;
    }

    /* Estilo para Cantidad */
    .td-qty {
        display: inline-block !important;
        /* Permitir que compartan línea */
        width: 100% !important;
        /* Ocupa el 40% del ancho */
        border-bottom: none !important;
        padding: 15px !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .td-qty::before {
        display: none;
    }

    /* Sin etiqueta */

    /* Estilo para Botón */
    .td-action {
        display: inline-block !important;
        width: 100% !important;
        /* Ocupa el 60% restante */
        border-bottom: none !important;
        padding: 15px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .td-action::before {
        display: none;
    }

    /* Sin etiqueta */

    /* Limpiar los floats para que el contenedor crezca */
    .stock-table-mobile tr::after {
        content: "";
        display: table;
        clear: both;
    }

    /* INPUT Y BOTÓN GRANDES */
    .input-qty {
        width: 100% !important;
        height: 45px;
        font-size: 1.1rem;
        border: 1px solid #cbd5e1;
        text-align: center;
        border-radius: 8px;
    }

    .quote-toggle {
        width: 100%;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background-color: #e0f2fe;
        color: #0369a1;
        font-weight: 700;
        cursor: pointer;
    }

    .quote-toggle.selected {
        background-color: #dcfce7;
        color: #15803d;
    }

    /* --- ARREGLO DE LOS BOTONES DE WHATSAPP/EMAIL (BANDEJA FLOTANTE) --- */

    .tray-inner {
        flex-wrap: wrap;
        /* Permitir que bajen si no caben */
        gap: 10px;
        justify-content: center;
    }

    .tray-right {
        width: 100%;
        justify-content: center;
        gap: 15px;
        /* Espacio entre botones */
    }

    /* El botón verde grande (Descargar Excel) */
    .btn-excel {
        flex-grow: 1;
        /* Que ocupe el espacio disponible */
        justify-content: center;
    }

    /* CORRECCIÓN DE DISTORSIÓN DE BOTONES REDONDOS */
    .btn-icon-only {
        width: 45px !important;
        /* Ancho fijo forzado */
        height: 45px !important;
        /* Alto fijo forzado */
        min-width: 45px !important;
        /* Evita que se aplaste */
        min-height: 45px !important;
        /* Evita que se aplaste */
        border-radius: 50% !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        /* CRUCIAL: Prohíbe al navegador encogerlos */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .divider-vertical {
        display: none;
        /* Ocultamos la línea divisoria en móvil para limpiar */
    }
}

/* --- ESTILOS PÁGINA CATÁLOGO --- */

/* A. Banner Cabecera */
.catalog-header-banner {
    background-color: #0f172a;
    /* Azul muy oscuro */
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
}

.catalog-header-banner h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.catalog-header-banner p {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* B. Estructura Grid (Sidebar + Contenido) */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    /* Sidebar fija 280px, resto flexible */
    gap: 3rem;
    align-items: start;
}

/* SIDEBAR */
.widget-box {
    margin-bottom: 2.5rem;
}

.widget-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Buscador Sidebar */
.search-form-cat {
    position: relative;
}

.search-form-cat input {
    width: 100%;
    padding: 10px 15px;
    padding-right: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
}

.search-form-cat button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
}

/* Lista de Filtros */
.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 0.5rem;
}

.filter-list a {
    color: #475569;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.filter-list a:hover,
.filter-list a.active {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.filter-list .count {
    background: #f1f5f9;
    color: #94a3b8;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* GRID DE TARJETAS */
.top-bar-results {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* 3 columnas responsive */
    gap: 2rem;
}

/* DISEÑO DE LA TARJETA (CARD) */
.species-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.card-image {
    height: 200px;
    background-color: #334155;
    /* Fondo gris si carga lento */
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
}

.badge-green {
    background: #22c55e;
}

.badge-gold {
    background: #fbbf24;
    color: #1e293b;
}

.badge-yellow {
    background: #facc15;
    color: #1e293b;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-family {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.1rem;
    /* Nombre Científico */
    font-weight: 800;
    font-style: italic;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
}

.card-subtitle {
    font-size: 0.95rem;
    /* Nombre Común */
    color: #64748b;
    font-weight: 400;
    margin: 0 0 1rem 0;
}

.card-meta {
    margin-top: auto;
    /* Empuja esto abajo */
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.meta-row:last-child {
    margin-bottom: 0;
}

.meta-row .label {
    color: #94a3b8;
}

.meta-row .value {
    color: #334155;
    font-weight: 600;
}

.btn-card-view {
    display: block;
    width: 100%;
    text-align: center;
    background: white;
    border: 1px solid #2563eb;
    color: #2563eb;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-card-view:hover {
    background: #2563eb;
    color: white;
}

/* PAGINACIÓN */
.catalog-pagination {
    margin-top: 3rem;
    text-align: center;
}

.catalog-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    margin: 0 4px;
    text-decoration: none;
    color: #64748b;
    border-radius: 4px;
}

.catalog-pagination .current,
.catalog-pagination .page-numbers:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* C. CTA FINAL */
.catalog-cta {
    background-color: #1e293b;
    color: white;
    text-align: center;
    padding: 4rem 1rem;
    margin-top: 4rem;
}

.catalog-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.catalog-cta p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.btn-download-pdf {
    background: #fbbf24;
    color: #0f172a;
    border: none;
    padding: 12px 30px;
    font-weight: 800;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    /* Sidebar arriba o abajo en móvil */
    .catalog-sidebar {
        display: none;
    }

    /* Ocultar sidebar en móvil? O ponerla debajo */
    /* Sugerencia: En móvil mejor ponerla en un acordeón, pero por ahora grid 1 col */
}

/* --- ESTILOS DE FILTRO ACORDEÓN (MÓVIL) --- */

/* 1. Por defecto en escritorio ocultamos el botón */
.mobile-filter-trigger {
    display: none;
}

@media (max-width: 900px) {
    
    .catalog-layout {
        grid-template-columns: 1fr; /* Una columna */
        gap: 1rem;
    }

    /* 2. Mostramos el botón SOLO en móvil */
    .mobile-filter-trigger {
        display: block;
        margin-bottom: 1rem;
    }

    #btnToggleFilters {
        width: 100%;
        background-color: #ffffff;
        border: 1px solid #cbd5e1;
        padding: 15px 20px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 1rem;
        font-weight: 700;
        color: #1e293b;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        transition: all 0.3s ease;
    }
    
    #btnToggleFilters ion-icon {
        font-size: 1.2rem;
        vertical-align: middle;
    }

    /* Estado activo del botón (cuando está abierto) */
    #btnToggleFilters.active {
        background-color: #1e293b; /* Se vuelve oscuro */
        color: #ffffff;
        border-color: #1e293b;
    }
    
    /* Rotar la flechita cuando se abre */
    #btnToggleFilters.active .arrow ion-icon {
        transform: rotate(180deg);
    }

    /* 3. La Sidebar (Oculta por defecto) */
    .catalog-sidebar {
        display: none; /* OCULTO */
        background-color: #f8fafc;
        padding: 20px;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        margin-bottom: 2rem;
        animation: slideDown 0.4s ease-out;
    }

    /* Clase para mostrarla (la pondrá JS) */
    .catalog-sidebar.is-visible {
        display: block;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* =========================================
   SECCIÓN: EXPLORAR CATÁLOGO (REDISEÑO)
   ========================================= */

.explore-catalog-section {
    padding: 100px 0 80px; /* Más espacio arriba */
    background-color: #f8fafc;
}

/* Pequeña línea decorativa debajo del título */
.title-separator {
    width: 60px;
    height: 3px;
    background: var(--color-primary-dark); /* Tu color amarillo */
    margin: 0 auto 25px; /* Centrado y con espacio */
    border-radius: 3px;
}

/* --- TARJETAS (Ajustes Finos) --- */
.explore-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.explore-card {
    position: relative;
    height: 380px; /* Un poco más altas */
    border-radius: 20px; /* Bordes más redondeados */
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); /* Sombra más suave y grande */
    transform: translateZ(0); /* Mejora rendimiento animación */
    transition: all 0.3s ease;
}

.explore-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Fondo y Overlay (Igual que antes, funcionan bien) */
.explore-card .card-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Animación más fluida */
    z-index: 1;
}
.explore-card .card-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 10%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.1) 100%);
    z-index: 2;
}

/* Contenido Interno */
.explore-card .card-content {
    position: relative; z-index: 3;
    padding: 40px;
    color: #fff; width: 100%;
    display:block;
}

/* Pequeña insignia sobre el título */
.card-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 30px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
.card-badge.badge-secondary { background: #fff; color: #1e293b; }

.explore-card h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 12px 0;
    line-height: 1.1;
}

.explore-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 25px 0;
    max-width: 85%;
}

/* Enlace dentro de la tarjeta */
.btn-link-styled {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: gap 0.3s;
}
.btn-link-styled ion-icon { font-size: 1.4rem; }

.explore-card:hover .btn-link-styled {
    gap: 15px; /* La flecha se mueve a la derecha */
    color: #fff;
}
.explore-card:hover .card-bg { transform: scale(1.08); }

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

/* --- NUEVO DISEÑO: ENLACE "VER TODO" --- */
.catalog-full-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
    text-decoration: none;
    color: var(--color-light);
    font-size: 1.2rem;
    padding: 15px 30px;
    border-radius: 50px;
    background: var(--color-primary-dark);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.catalog-full-link ion-icon {
    font-size: 1.6rem;
    color: var(--color-accent-hover); /* Icono amarillo */
}

.catalog-full-link:hover {
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15); /* Sombra azulada */
    transform: translateY(-3px);
    background: var(--color-catfish);
}

.catalog-full-link:hover .link-text {
    color: var(--color-light); /* Texto se oscurece */
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .explore-grid { grid-template-columns: 1fr; gap: 25px; }
    .explore-card { height: 320px; }
    .explore-card .card-content { padding: 30px; }
    .explore-card h3 { font-size: 1.8rem; }
    
    .catalog-full-link {
        font-size: 1.1rem;
        padding: 12px 25px;
        width: 100%;
        justify-content: center;
        background: var(--color-primary-dark);
    }
}

/* --- SECCIÓN TESTIMONIOS --- */
.testimonials-section {
    padding: 80px 0;
    background-color: #ffffff; /* Fondo blanco limpio */
}

/* Tarjeta de Testimonio */
.testimonial-card {
    background-color: #f8fafc; /* Gris muy clarito como en la foto */
    padding: 40px;
    border-radius: 16px;
    height: 100%; /* Para que todas midan igual */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left; /* Texto a la izquierda */
    border: 1px solid #f1f5f9;
}

.testimonial-card .quote {
    font-style: italic;
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 25px;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.author-role {
    font-size: 0.9rem;
    color: #64748b; /* Gris texto secundario */
    display: block;
    margin-top: 5px;
}

/* Ajustes de Swiper */
.swiper-pagination-bullet-active {
    background-color: var(--color-primary) !important;
}
.swiper {
    padding-bottom: 50px !important; /* Espacio para los puntitos */
}

/* =========================================
   PÁGINA DE CONTACTO (ESTILO B2B)
   ========================================= */

.contact-hero-strip {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}
.contact-hero-strip h1 {
    color: var(--color-primary); /* Azul corporativo */
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.contact-page-wrapper {
    background-color: #f8fafc; /* Fondo gris claro */
    padding: 60px 0 100px;
}

/* --- CONTENEDOR TARJETA FLOTANTE --- */
.contact-card-container {
    display: flex;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    max-width: 1200px;
    margin: 0 auto;
}

/* --- A. SIDEBAR AZUL --- */
.contact-sidebar-blue {
    background-color: #1e3a8a; /* Azul oscuro profundo */
    color: #fff;
    width: 35%; /* Ocupa el 35% del ancho */
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Elemento decorativo de fondo (círculo sutil) */
.contact-sidebar-blue::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
    display: inline-block;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.icon-box ion-icon {
    font-size: 1.8rem;
    color: var(--color-accent); /* Amarillo */
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
}

.info-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.info-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

.info-content a {
    color: #fff;
    text-decoration: none;
}
.info-content a:hover { text-decoration: underline; }

.small-note {
    display: block;
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 5px;
}

/* Mapa en Sidebar */
.sidebar-map-wrapper {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
    background: #334155;
    border: 2px solid rgba(255,255,255,0.1);
}

.google-map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.map-placeholder {
    height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3);
}

/* --- B. FORMULARIO BLANCO --- */
.contact-form-section {
    width: 65%; /* Ocupa el 65% */
    padding: 60px;
    background-color: #ffffff;
}

.form-title {
    font-size: 2rem;
    color: #1e293b;
    font-weight: 800;
    margin-bottom: 10px;
}

.form-subtitle {
    color: #64748b;
    margin-bottom: 40px;
}

/* Estilos de Inputs */
.clean-form .form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.clean-form .form-group {
    flex: 1; /* Ocupa espacio disponible */
}

.clean-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.clean-form input,
.clean-form select,
.clean-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    color: #1e293b;
    background-color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit; /* Heredar tipografía */
}

.clean-form input:focus,
.clean-form select:focus,
.clean-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.clean-form textarea { resize: vertical; }

/* Botón de envío */
.btn-submit-contact {
    width: 100%;
    background-color: #2563eb; /* Azul brillante botón */
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.btn-submit-contact:hover {
    background-color: #1d4ed8;
}

.privacy-note {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 15px;
}

/* --- FAQ SECTION --- */
.faq-section {
    max-width: 1200px;
    margin: 60px auto 0;
}
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.faq-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.faq-card h4 {
    color: #2563eb;
    margin-bottom: 10px;
    font-weight: 700;
}
.faq-card p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .contact-card-container {
        flex-direction: column; /* Columna una debajo de otra */
    }
    .contact-sidebar-blue, 
    .contact-form-section {
        width: 100%;
        padding: 40px 20px;
    }
    
    .contact-sidebar-blue { order: 2; } /* Mover sidebar abajo en móvil */
    .contact-form-section { order: 1; } /* Formulario primero */
    
    .clean-form .form-row {
        flex-direction: column; /* Inputs uno debajo de otro */
        gap: 20px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   PÁGINA DE ERROR 404 (MEJORADA)
   ========================================= */

/* Contenedor principal centrado y con espacio */
.error-404-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

/* El número gigante 404 */
.big-404 {
    font-size: 10rem;     /* Tamaño enorme */
    line-height: 1;       /* Altura de línea compacta */
    font-weight: 900;     /* Muy negrita */
    margin-bottom: 20px;
    
    /* Truco para texto con degradado azul */
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Necesario para el degradado */
}

/* Título principal "Ups!..." */
.error-404-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b; /* Color oscuro casi negro */
    margin-bottom: 20px;
}

/* Párrafo descriptivo */
.error-404-content p {
    font-size: 1.2rem;
    color: #64748b; /* Gris azulado para el texto */
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Contenedor de los botones */
.actions-404 {
    display: flex;
    justify-content: center;
    gap: 25px; /* Espacio entre botones */
    flex-wrap: wrap; /* Para que se adapten en móviles */
}

/* --- ESTILOS DE BOTONES ESPECÍFICOS PARA 404 --- */

/* Base común para ambos botones */
.actions-404 a {
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Espacio entre icono y texto */
    padding: 15px 30px;
    border-radius: 50px; /* Bordes muy redondeados */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease; /* Transición suave */
    font-size: 1.1rem;
}

/* Botón Primario (Volver al Inicio) - Azul sólido */
.btn-catfish-primary {
    background-color: #1e3a8a;
    color: #ffffff;
    border: 2px solid #1e3a8a;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3); /* Sombra suave */
}

.btn-catfish-primary:hover {
    background-color: #172554; /* Azul más oscuro al pasar el mouse */
    border-color: #172554;
    transform: translateY(-3px); /* Pequeño efecto de elevación */
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
}

/* Botón Secundario (Ver Catálogo) - Borde azul */
.btn-catfish-outline {
    background-color: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.btn-catfish-outline:hover {
    background-color: #1e3a8a;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.2);
}

/* Ajuste para iconos dentro de los botones */
.actions-404 a ion-icon {
    font-size: 1.3rem;
}

/* =========================================
   ÁRBOL ACORDEÓN (SIDEBAR FILTROS)
   ========================================= */

ul.ajax-filters, 
ul.filtro-nivel-hijo {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

ul.filtro-nivel-hijo {
    margin-left: 18px !important; 
}

li.filtro-item-padre,
li.filtro-item-hijo {
    padding: 0 !important;
    margin: 0 !important;
}

/* AQUÍ ESTÁ LA MAGIA PARA ALINEAR SIN BOOTSTRAP */
.item-acordeon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.enlace-filtro {
    text-decoration: none;
    transition: color 0.2s ease;
    flex-grow: 1; /* Empuja la flecha a la derecha */
}

li.filtro-item-padre > .item-acordeon > .enlace-filtro {
    font-weight: 700;
    color: #1e293b;
}

li.filtro-item-hijo > .item-acordeon > .enlace-filtro {
    font-weight: 500;
    color: #475569;
    font-size: 0.95em;
}

.enlace-filtro:hover {
    color: #1e3a8a;
}

.btn-acordeon {
    padding: 0 5px;
    font-size: 1.1em;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-acordeon:hover {
    color: #1e3a8a;
}

/* =========================================
   FICHA TÉCNICA B2B (OTRAS ESPECIES)
   ========================================= */

/* Layout Específico para Exóticos */
.species-columns.exotico-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .species-columns.exotico-layout {
        grid-template-columns: 5fr 7fr; /* 5/12 para imagen, 7/12 para datos */
        align-items: start;
    }
}

/* Badges de Estado y CITES en la Imagen */
.badges-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.badge-estado {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.badge-verde { background-color: #15803d; }
.badge-dorado { background-color: #ca8a04; }
.cites-badge {
    background-color: #b91c1c; /* Rojo intenso para CITES */
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Bloques de Información */
.info-block {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.info-block-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a8a; /* Tu azul corporativo */
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}
.info-block-title ion-icon { font-size: 1.4rem; }

/* Grid de Datos Biológicos */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.data-item {
    border-left: 4px solid #cbd5e1;
    padding-left: 15px;
}

.data-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 5px;
}

.data-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
    color: #334155;
}

.cites-status.text-danger { color: #dc2626 !important; }
.cites-status.text-success { color: #16a34a !important; }

/* Grid de Logística */
.logistics-data {
    background-color: #f8fafc; /* Fondo ligeramente diferente para destacar */
    border-color: #cbd5e1;
}

.logistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.logistics-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.logistics-icon {
    font-size: 2rem;
    color: #1e3a8a;
    background: #e0e7ff;
    padding: 10px;
    border-radius: 10px;
}

.logistics-item strong {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.logistics-item p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Botones de Acción Mejorados */
.action-buttons .btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
}
@media (max-width: 768px) {
    .action-buttons .btn-lg { width: 100%; justify-content: center; }
}

/* =========================================
   ESTILOS PREMIUM PARA LISTAS DEL FOOTER
   ========================================= */

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Espaciado entre cada elemento de la lista */
.footer-links li {
    margin-bottom: 15px;
    display: flex; /* Para alinear bien textos largos e iconos */
    align-items: flex-start;
}

/* Estilo base para los enlaces */
.footer-links a {
    color: #9ca3af; /* Gris claro elegante */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* Efecto Hover: Se vuelve blanco y se mueve un poquito a la derecha */
.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

/* Agregamos una sutil flecha (›) solo a las columnas de Navegación (2) 
  y Especies Populares (3), sin afectar la columna de Contacto (4) 
*/
.footer-grid > div:nth-child(2) .footer-links a::before,
.footer-grid > div:nth-child(3) .footer-links a::before {
    content: '›';
    margin-right: 10px;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--color-primary-dark); /* Azul brillante */
    transition: transform 0.3s ease;
}

/* Que la flecha también se mueva en hover */
.footer-links a:hover::before {
    transform: translateX(3px);
}

/* Ajustes finos para la columna de Contacto (Iconos Ion) */
.footer-grid > div:nth-child(4) .footer-links li {
    color: #9ca3af; /* Mismo gris para los textos que no son enlace como la dirección */
    line-height: 1.5;
}

.footer-grid > div:nth-child(4) .footer-links ion-icon {
    font-size: 1.3rem;
    color: #ffffff; /* Iconos en blanco para resaltar */
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ===================================================
   ESTILOS AMAZON TITAN TOURS (GUTENBERG NATIVO)
   =================================================== */

/* --- 1. CABECERA HÉROE (ESTILO VIRU - PULIDO) --- */
.wp-block-cover.titan-hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    min-height: 85vh !important;
    padding: 40px max(10%, calc(50vw - 550px)) !important; 
}

.titan-hero-content {
    max-width: 700px;
    text-align: left; 
    width: 100%;
}

.titan-hero-content h1 { 
    color: #ffffff !important; 
    font-size: 4.5rem !important; 
    font-weight: 400 !important; 
    margin-bottom: 25px !important; 
    text-transform: uppercase !important; 
    line-height: 1.1 !important; 
    letter-spacing: -1px; 
    font-family: var(--font-display);
}

.titan-hero-content h3 {
    color: var(--color-accent) !important; 
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0px !important;
    font-family: var(--font-display);
}

.titan-hero-content p { 
    font-size: 1.3rem !important; 
    margin-bottom: 20px !important; 
    line-height: 1.3 !important; 
    color: #f3f4f6 !important; 
    font-weight: 400 !important;
}

@media(max-width: 782px) {
    .wp-block-cover.titan-hero {
        align-items: flex-end;
        padding: 0px 5% !important; 
    }

    .titan-hero-content {
        max-width: 100%;
        text-align: center; 
        width: 100%;
        margin-bottom: 40%;
    }

    .titan-hero-content div {
        display: flex;
        flex-flow: column;
    }
    
    .titan-hero-content h1 { 
        color: #ffffff !important; 
        font-size: 3.2rem !important; 
        font-weight: 900 !important; 
        margin-bottom: 10px !important; 
        text-transform: uppercase !important; 
        line-height: 1.1 !important; 
        letter-spacing: 2px;
        text-align: center;
        order: 1;
    }

    .titan-hero-content h3 {
        color: var(--color-accent) !important; 
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 0px !important;
        text-align: center !important;
        order: 2;
    }

    .titan-hero-content p { 
        display: none !important;
    }
}


/* --- 2. SECCIONES DE PAQUETES (UNIFICADO, SEGURO Y CON ESPACIO) --- */

/* Contenedor principal a pantalla completa con espacios de respiro */
.wp-block-cover.titan-section, 
.wp-block-group.titan-section,
.titan-section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 140px max(5%, calc(50vw - 600px)) !important; /* Más padding para respirar */
    margin-bottom: 0px !important; /* Separación entre bloques */
    box-sizing: border-box !important;
}

/* Estructura de Columnas (Blindado para que no colapse) */
.titan-section .wp-block-columns,
.wp-block-columns.titan-section {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    max-width: 1250px !important;
    gap: 50px !important;
    align-items: center !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Columna 1: Imagen al 58% 
.titan-section .wp-block-column:nth-child(1) {
    flex: 0 0 58% !important;
    max-width: 58% !important;
}

/* Columna 2: Texto al 42%
.titan-section .wp-block-column:nth-child(2) {
    flex: 0 0 42% !important;
    max-width: 42% !important;
}*/

/* Colores de sección según el fondo */
.titan-section.text-light { color: white; }
.titan-section.text-light h2 { color: #f59e0b; font-size: 2.5rem !important; font-weight: 400 !important; margin-bottom: 20px !important; font-family: var(--font-display);}

.titan-section.bg-light { background-color: #f9fafb !important; color: #1f2937; }
.titan-section.bg-light h2 { color: #047857; font-size: 2.5rem !important; font-weight: 400 !important; margin-bottom: 20px !important; font-family: var(--font-display);}

/* Invertir orden en pantallas grandes (Zig-Zag) */
@media(min-width: 782px) {
    .titan-section.reverse .wp-block-columns,
    .wp-block-columns.titan-section.reverse { 
        flex-direction: row-reverse !important; 
    }
}

/* Evitar colapso en celulares (Volver a 1 columna) */
@media(max-width: 781px) {
    .titan-section .wp-block-columns,
    .wp-block-columns.titan-section {
        flex-direction: column !important;
    }
    .titan-section .wp-block-column:nth-child(1),
    .titan-section .wp-block-column:nth-child(2) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}


/* --- 3. ESTILOS DE FOTO, TEXTO Y LISTAS --- */

/* Diseño panorámico y limpio de la imagen */
.titan-img-col img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover; 
    border-radius: 4px;
    box-shadow: none;
    display: block;
    margin: 0 auto;
    box-shadow: 10px 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: 15px 15px;
    border: 5px solid white;
}

.titan-text-col { padding-top: 10px; padding-bottom: 10px; }

.titan-text-col h3 {
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    color: var(--color-accent) !important;
    margin-bottom: 5px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-family: var(--font-display);
}

/* Estilo del Título Principal de cada paquete (H2) */
.titan-text-col h2 {
    color: #ffffff !important;
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
}

/* Variación del H2 para cuando el fondo es claro */
.titan-section.bg-light .titan-text-col h2 {
    color: var(--color-primary) !important; /* Verde selva */
}

.titan-section.bg-light .titan-text-col h3 {
    color: var(--color-catfish) !important; /* Verde selva */
}

.titan-text-col p { 
    font-size: 1.1rem !important; 
    line-height: 1.6 !important; 
    color: #e5e7eb !important; 
    margin-bottom: 25px !important;
}

/* Diseño elegante de las listas */
.titan-text-col ul { 
    list-style: none; 
    padding-left: 0; 
    margin-bottom: 30px;
}

.titan-text-col li { 
    margin-bottom: 18px; 
    font-size: 1.1rem; 
    line-height: 1.5; 
    color: #e5e7eb; 
}

.titan-text-col li strong { 
    display: block; 
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent); 
    margin-bottom: 4px;
}

/* Ajuste de colores para la sección de fondo claro */
.titan-section.bg-light .titan-text-col p,
.titan-section.bg-light .titan-text-col li {
    color: #1a1a1a !important; 
    font-weight: 400;
}

.titan-section.bg-light .titan-text-col li strong { 
    color: var(--color-catfish) !important; 
}


/* --- 4. BOTONES ESTILO PÍLDORA --- */
.titan-btn .wp-block-button__link {
    padding: 10px 28px;
    background-color: #ffffff !important;
    color: var(--color-catfish) !important;
    font-weight: bold;
    font-size: 0.95rem;
    text-transform: none;
    border-radius: 30px !important;
    transition: background 0.3s ease, color 0.3s ease;
    border: 2px solid transparent; 
}

.titan-btn .wp-block-button__link:hover {
    background-color: var(--color-accent) !important;
    border-color: var(--color-accent-hover);
}

.titan-section.bg-light .titan-btn .wp-block-button__link {
    background-color: var(--color-primary) !important;
    color: var(--color-light) !important;
}

.titan-section.bg-light .titan-btn .wp-block-button__link:hover {
    background-color: var(--color-accent) !important;
    color: var(--color-catfish) !important;
}

/* --- 5. SECCIÓN: POR QUÉ ELEGIRNOS (ESTILO LIMPIO 3 COLUMNAS) --- */
.titan-why-us {
    padding: 100px max(5%, calc(50vw - 600px)) !important;
    background-color: #ffffff !important;
    text-align: center;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    box-sizing: border-box !important;
}

/* Título principal de la sección (Más elegante y equilibrado) */
.titan-why-us h2 {
    font-size: 2.3rem !important; /* Reducido de 2.8rem para quitarle peso */
    font-weight: 700 !important; /* Un poco menos grueso */
    color: #111827 !important;
    margin-bottom: 15px !important;
}

/* Subtítulo introductorio */
.titan-why-us .subtitulo {
    font-size: 1.2rem !important;
    color: #4b5563 !important;
    max-width: 800px;
    /* Aumentamos el margen inferior a 80px para separar más los iconos del texto de arriba */
    margin: 0 auto 80px auto !important; 
    line-height: 1.6 !important;
}

/* Contenedor de las 3 columnas */
.titan-why-us .wp-block-columns {
    max-width: 1200px !important;
    margin: 0 auto !important;
    gap: 50px !important;
    align-items: flex-start !important;
}

/* Cajas individuales de cada razón */
.titan-feature-box {
    text-align: center;
    padding: 10px;
}

/* iconos individuales de cada razón */
.titan-feature-box .icon-tour{
    width: 65px;            /* Controla el tamaño del ícono */
    height: auto;           /* Mantiene las proporciones */
    fill: var(--color-primary);          /* Aquí pones el color Azul Oscuro de tu logo */
    margin-bottom: 15px;    /* Espacio entre el ícono y el título de abajo */
    transition: all 0.3s ease; /* Hace que cualquier cambio (como el hover) sea suave */
}

.titan-feature-box .icon-tour:hover{
    fill: var(--color-accent);          /* Cambia al color amarillo/mostaza de tus botones */
    transform: translateY(-5px); /* Hace que el ícono "salte" un poco hacia arriba */
}

/* Control del tamaño de los iconos/imágenes */
.titan-feature-box img {
    max-width: 85px !important; /* Un poco más grandes para que sean protagonistas */
    height: auto;
    margin: 0 auto 30px auto !important; /* Más espacio entre el icono y el subtítulo H4 */
    display: block;
}

/* Títulos de cada razón (H4) */
.titan-feature-box h3 {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 15px !important;
}

/* Párrafo descriptivo de cada razón */
.titan-feature-box p {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: #4b5563 !important;
    margin-bottom: 0 !important;
}

/* Adaptación a móviles (Apila las 3 razones una sobre otra) */
@media(max-width: 781px) {
    .titan-why-us .wp-block-columns {
        flex-direction: column !important;
        gap: 40px !important;
    }
}

/* --- 6. SECCIÓN: ÚLTIMAS ENTRADAS (BLOG - LATEST POSTS BLOCK) --- */

.titan-blog-section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 100px max(5%, calc(50vw - 600px)) !important;
    background-color: #f3f4f6 !important;
    box-sizing: border-box !important;
}

.titan-blog-section h2 {
    font-size: 2.3rem !important; /* Reducido de 2.8rem para quitarle peso */
    font-weight: 700 !important; /* Un poco menos grueso */
    color: #111827 !important;
    margin-bottom: 15px !important;
}

/* Forzar la Cuadrícula a 3 Columnas (CORREGIDO PARA EVITAR COLAPSO) */
.titan-blog-section .titan-latest-posts-grid,
.titan-blog-section .wp-block-latest-posts.is-grid {
    display: flex !important; /* Usamos flexbox en lugar de grid para más control */
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 50px auto 50px auto !important;
    padding: 0 !important;
}

/* Control exacto del ancho de cada tarjeta (1/3 menos el espacio) */
.titan-blog-section .wp-block-latest-posts > li {
    flex: 0 0 calc(33.333% - 20px) !important;
    max-width: calc(33.333% - 20px) !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    display: flex;
    flex-direction: column;
    box-shadow: none !important;
}

/* Estilo de cada Tarjeta Individual (li) */
.titan-blog-section .wp-block-latest-posts > li {
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 30px !important;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease !important;
    margin-bottom: 0 !important;
    list-style: none !important;
    display: flex;
    flex-direction: column;

    /* Activar Flexbox para reordenar los elementos internos */
    display: flex !important;
    flex-direction: column !important;
    box-shadow: none !important;
}

.titan-blog-section .wp-block-latest-posts > li:hover {
    transform: translateY(-5px) !important;
}

/* Imagen destacada (si la activas) */
.titan-blog-section .wp-block-latest-posts__featured-image {
    margin-bottom: 20px !important;
    width: 100% !important;
    order: 1 !important; /* Primero la foto */
}

.titan-blog-section .wp-block-latest-posts__featured-image img {
    border-radius: 4px;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9; /* Proporción panorámica para la imagen del blog */
}

/* Título de la Entrada */
.titan-blog-section .wp-block-latest-posts > li > a {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: var(--color-catfish) !important;
    text-decoration: none !important;
    margin-bottom: 15px !important;
    display: block;
    order: 3 !important; /* Tercera posición */
}

.titan-blog-section .wp-block-latest-posts > li > a:hover {
    color: var(--color-primary-dark) !important;
}

/* Extracto (Texto de resumen) */
.titan-blog-section .wp-block-latest-posts__post-excerpt {
    font-size: 1rem !important;
    color: #4b5563 !important;
    line-height: 1.6 !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    order: 4 !important; /* Cuarta posición */
}

/* Fecha de publicación */
.titan-blog-section .wp-block-latest-posts__post-date {
    font-size: 0.85rem !important;
    color: #9ca3af !important;
    margin-top: 15px !important;
    order: 2 !important; /* Segunda posición */
}

/* Adaptación a móviles */
@media(max-width: 781px) {
    .titan-blog-section .wp-block-latest-posts.is-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    .titan-blog-section .wp-block-latest-posts > li {
        max-width: calc(100% - 0px) !important;
    }
}

/* --- 7. PÁGINA PRINCIPAL DE BLOG (INDEX.PHP) --- */

/* POST DESTACADO */
.titan-featured-post {
    text-align: center;
    margin-bottom: 80px;
}

.titan-featured-post .featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.titan-featured-post .featured-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.titan-featured-post .featured-title a {
    color: #111827;
    text-decoration: none;
}

.titan-featured-post .featured-excerpt {
    font-size: 1rem;
    color: #4b5563;
    max-width: 800px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

.titan-featured-post .featured-read-more {
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}

/* CUADRÍCULA DE POSTS RESTANTES */
.titan-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

/* Tarjeta individual */
.titan-blog-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.titan-blog-card .card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.titan-blog-card .card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.titan-blog-card .card-date {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 10px;
    display: block;
}

.titan-blog-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Color Verde del ejemplo */
.titan-blog-card .card-title a {
    color: var(--color-catfish); 
    text-decoration: none;
}

.titan-blog-card .card-title a:hover {
    color: var(--color-primary-dark);
}

.titan-blog-card .card-excerpt {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Botón gris claro "Leer artículo »" */
.titan-blog-card .card-action {
    text-align: center;
}

.titan-blog-card .card-button {
    display: inline-block;
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s;
}

.titan-blog-card .card-button:hover {
    background-color: #e5e7eb;
}

/* --- ESTILO DE PAGINACIÓN (Basado en la captura) --- */
.titan-pagination {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.titan-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.titan-pagination .page-numbers {
    display: inline-block;
    color: #4b5563;
    text-decoration: none;
    font-size: 1rem;
}

/* Círculo naranja para la página actual */
.titan-pagination .page-numbers.current {
    width: 30px;
    height: 30px;
    line-height: 30px;
    background-color: #f97316; /* Naranja del ejemplo */
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
}

.titan-pagination .page-numbers:hover:not(.current):not(.dots) {
    color: #f97316;
}

/* Estado deshabilitado para la paginación cuando hay solo 1 página */
.titan-pagination .page-numbers.disabled {
    color: #d1d5db !important; /* Gris muy claro para que se vea inactivo */
    cursor: not-allowed !important; /* Muestra el cursor de prohibido/no clicable */
    pointer-events: none !important; /* Bloquea cualquier intento de clic real */
}

/* --- 8. SINGLE POST (DISEÑO INTERNO DEL ARTÍCULO) --- */

.titan-single-post {
    background-color: #f9fafb;
    padding-bottom: 80px;
}

/* 8.1. Cabecera (Título y Subtítulo) */
.single-post-header {
    padding: 60px 20px 30px;
}

/* Alineación Perfecta a 800px */
.titan-single-post .header-container,
.titan-single-post .image-container,
.titan-single-post .content-container {
    max-width: 800px;
    margin: 0 auto;
}

.single-post-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.single-post-subtitle {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 8.2. Imagen Destacada */
.single-post-thumbnail {
    margin-bottom: 50px;
}

.single-post-thumbnail .featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block; /* Elimina espacios fantasma bajo la imagen */
}

/* 8.3. Botones de Compartir */
.social-share-buttons {
    text-align: right;
    margin-bottom: 20px;
}

.share-btn {
    display: inline-block;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    margin-left: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.share-btn:hover {
    opacity: 0.8;
    color: white;
}

.share-fb { background: #3b5998; }
.share-x { background: #000000; padding: 5px 10px; }
.share-in { background: #0077b5; padding: 5px 10px; }

/* 8.4. Cuerpo del Artículo (Caja Blanca) */
.single-post-content {
    background: #ffffff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    font-size: 1.05rem;
    color: #374151;
    line-height: 1.8;
}

/* Estilos internos de los bloques de Gutenberg dentro del artículo */
.single-post-content h2,
.single-post-content h3 {
    color: #111827;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content a {
    color: #3b82f6; /* Azul para enlaces en el texto */
    text-decoration: underline;
}

.single-post-content a:hover {
    color: #2563eb;
}

.single-post-content ul, 
.single-post-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.single-post-content li {
    margin-bottom: 10px;
}

/* 8.5. Artículos Relacionados (Al fondo) */
.related-posts-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #e5e7eb;
}

.related-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.titan-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Ajustes a la tarjeta heredada para que no rompa el diseño */
.titan-related-grid .titan-blog-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.titan-related-grid .card-image-link img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.titan-related-grid .card-content-inner {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.titan-related-grid .card-date {
    font-size: 0.85rem;
    color: #6b7280;
    display: block;
    margin-bottom: 10px;
}

.titan-related-grid .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.titan-related-grid .card-title a {
    color: var(--color-catfish); /* Verde */
    text-decoration: none;
}

.titan-related-grid .card-title a:hover {
    color: var(--color-primary-dark);
}

.titan-related-grid .card-excerpt {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    /* Truco moderno para forzar exactamente 3 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 9. INDEX.PHP REFACTOR (ESTILOS LIMPIOS) --- */

/* Headers dinámicos del blog */
.header-title.has-image { color: #ffffff; }
.header-subtitle.has-image { color: #ffffff; margin-top: 15px; font-size: 1.2rem; }

.blog-header-solid { background-color: #111827; padding: 100px 0; text-align: center; }
.header-title.no-image { color: #ffffff; font-size: 3.5rem; margin: 0; }
.header-subtitle.no-image { color: #ffffff; font-size: 1.2rem; margin-top: 15px; }

/* Sección de Introducción */
.blog-intro { padding: 50px 20px; background-color: #f9fafb; text-align: center; }
.intro-container { max-width: 800px; margin: 0 auto; }
.intro-kicker { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: #4b5563; }
.intro-title { font-size: 2rem; font-weight: 800; color: #111827; margin: 15px 0; }
.intro-description { color: #6b7280; line-height: 1.6; }

/* Main Container del Blog */
.titan-main-blog { background-color: #f9fafb; padding-bottom: 80px; }
.titan-main-blog.is-category-view { padding-top: 50px; }
.blog-main-container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* Mensaje sin posts */
.no-posts-msg { text-align: center; font-size: 1.2rem; color: #6b7280; padding: 40px 0; }

/* Píldoras de Categoría sobre la Imagen */
.relative-container { position: relative; }

.post-category-pill {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 1px;
    z-index: 10;
    transition: background-color 0.3s;
}

.post-category-pill:hover { background-color: var(--color-primary-dark); color: #ffffff; }
.featured-pill { font-size: 0.85rem; padding: 6px 16px; }

/*--- desenfocar fondos de imágenes*/
.titan-image-bg-blur > img{
    filter: grayscale(90%) blur(2px) !important;
}