/* 
   Paleta de Colores Actualizada (Teoría del Color: Tonos Azules + Acento Complementario) 
*/
:root {
    --bg-light-blue: #B2C8DF;    /* Azul claro para la sección superior */
    --bg-cream: #FFF8E1;         /* Crema claro para la sección inferior */
    --block-color: #1A365D;      /* Azul Marino Oscuro */
    --title-color: #2B6CB0;      /* Azul Acero */
    --accent-color: #FABE00;     /* Amarillo Dorado */
    --text-color: #212121;       /* Texto base */
    
    --font-titles: 'Lobster Two', cursive;
    --font-text: system-ui, -apple-system, sans-serif;
}

/* Aplicamos el fondo crema a todo el cuerpo por defecto */
body {
    background-color: var(--bg-cream);
    color: var(--text-color);
    font-family: var(--font-text);
    line-height: 1.6;
}

/* ================= HERO SECTION (DOS COLUMNAS) ================= */
.hero-split {
    background-color: var(--bg-light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 10%;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-text h2 {
    font-size: 3.5rem;
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-text .highlight {
    color: var(--accent-color);
}

.hero-text .subtitle {
    font-size: 2.2rem;
    color: var(--text-color);
}

.hero-image-box {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    height: 300px;
    background-color: var(--block-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ================= TARJETAS EN FORMA DE ARCO (BOTONES) ================= */
.cards-section {
    background-color: var(--bg-cream);
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 4rem 2rem;
    flex-wrap: wrap;
}

.card-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.card-link:hover {
    transform: translateY(-8px);
}

.arch-card {
    width: 260px;
    background-color: var(--block-color);
    /* Borde redondeado superior para simular un arco */
    border-radius: 130px 130px 15px 15px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.arch-card .card-img-placeholder {
    height: 260px;
    background-color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.arch-card .card-content {
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to top, var(--block-color) 70%, transparent);
    margin-top: -30px; /* Superpone el texto un poco sobre la imagen si fuera real */
}

.arch-card h3 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.btn-yellow {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 0.4rem 1.5rem;
    border-radius: 20px;
    font-size: 1.2rem;
}

/* ================= NAVEGACIÓN (HEADER) ================= */
.main-header {
    background-color: var(--block-color); /* Fondo azul marino */
    display: flex;
    justify-content: space-between; /* Separa el logo a la izquierda y el menú a la derecha */
    align-items: center; /* Centra los elementos verticalmente */
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Contenedor del Logo */
.logo-container {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 80px; /* Fuerza una altura visible y decente */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Contenedor de Navegación */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none !important; /* Elimina los puntos de la lista */
    display: flex !important; /* Fuerza la alineación horizontal */
    flex-direction: row;
    gap: 2rem; /* Espaciado entre botones */
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    color: #FFFFFF !important; /* Fuerza el color blanco */
    text-decoration: none; /* Elimina el subrayado */
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--accent-color) !important; /* Color dorado al pasar el cursor o si está activo */
}

/* ================= RESPONSIVIDAD (MÓVILES) ================= */
@media (max-width: 850px) {
    .main-header {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}
/* ================= TARJETAS (MACHOS, HEMBRAS, ART) ================= */
.cards-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2rem;
    flex-wrap: wrap;
}

.card {
    background-color: var(--block-color);
    border-radius: 12px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.card-img-placeholder {
    height: 250px;
    background-color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
}

.card-footer {
    padding: 1.5rem;
    text-align: center;
}

.card-footer h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.btn-accent {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--block-color);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.2s;
}

.btn-accent:hover {
    transform: scale(1.05);
}

/* ================= QUIÉNES SOMOS ================= */
.about-section {
    padding: 3rem 10%;
    background-color: var(--bg-cream);
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center; /* Centra la imagen y el texto verticalmente */
    flex-wrap: wrap;
}

.about-img-placeholder {
    flex: 1;
    min-width: 300px;
    max-width: 450px; /* Límite estricto para que la foto no crezca desproporcionadamente */
    height: 350px;
    border-radius: 12px;
    overflow: hidden; /* Corta cualquier excedente de la imagen */
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la foto sin deformarla */
    display: block;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* ================= GALERÍA ================= */
.gallery-section {
    padding: 3rem 5%;
}

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

.gallery-item {
    background-color: #cbd5e1;
    height: 150px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* ================= FOOTER ================= */
/* ================= FOOTER ACTUALIZADO (ESTILO COLUMNAS LÍNEA PURINA) ================= */
.main-footer {
    background-color: var(--block-color);
    color: #ffffff;
    padding: 4rem 5% 1.5rem;
    margin-top: 4rem;
    font-family: var(--font-text);
}

.footer-container {
    display: grid;
    /* Divide el footer en 4 columnas. Ajusta proporciones de espacio */
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 2rem;

    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 3rem;
    margin-bottom: 1.5rem;
}

.site-logo-footer {
    max-width: 160px;
    height: auto;
    display: block;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    /* Línea separadora blanca debajo del título como en la imagen */
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    letter-spacing: 0.5px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem; /* Separación vertical entre enlaces */
}

.footer-links-list a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.3s ease;
}

.footer-links-list a:hover {
    color: var(--accent-color);
}

.footer-icon {
    width: 20px;
    height: 20px;
    fill: currentColor; /* El SVG cambia de color automáticamente al pasar el cursor (hover) */
}

.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ================= RESPONSIVIDAD FOOTER ================= */
@media (max-width: 992px) {
    /* En tabletas, se agrupa en 2 columnas */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    /* En móviles, 1 sola columna centrada */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column {
        text-align: center;
    }

    .footer-links-list a {
        justify-content: center;
    }
    
    .site-logo-footer {
        margin: 0 auto;
    }
}
/* ================= AJUSTES DE GALERÍA ================= */
.gallery-item {
    background-color: #cbd5e1;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

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

/* ================= MODAL DE IMÁGENES ================= */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fondo oscuro semitransparente */
    align-items: center;
    justify-content: center;
}

/* Clase para mostrar el modal dinámicamente */
.modal.active {
    display: flex;
}

.modal-content {
    display: flex;
    background-color: var(--bg-cream);
    border-radius: 12px;
    overflow: hidden;
    max-width: 1000px;
    width: 90%;
    max-height: 80vh;
    flex-direction: row;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-image-container {
    flex: 2;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#modal-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-info {
    flex: 1;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--block-color);
    color: #ffffff;
}

.modal-info p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    font-family: var(--font-text);
}

/* Botón de WhatsApp Integrado */
.whatsapp-btn {
    display: inline-block;
    background-color: #25D366;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.whatsapp-btn:hover {
    background-color: #1ebe57;
    transform: scale(1.05);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.close-modal:hover {
    color: var(--accent-color);
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
    }
    .modal-image-container {
        flex: auto;
        height: 50vh;
    }
    .modal-info {
        padding: 2rem 1.5rem;
    }
    .modal-info p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    #modal-img {
        max-height: 50vh;
    }
}
/* ================= AJUSTES DE IMÁGENES PORTADA Y TARJETAS ================= */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que la foto se estire o deforme */
    display: block;
}

.hero-image-box {
    /* Mantiene las dimensiones anteriores pero elimina el color de fondo sólido */
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.arch-card .card-img-placeholder {
    height: 260px;
    background-color: transparent;
    display: block;
}

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

/* ================= CORRECCIÓN DEL MODAL ================= */
.modal.active {
    display: flex !important; /* El !important asegura que se sobreescriba el display: none */
}
/* ================= SECCIÓN DE ARTÍCULOS ================= */
.articles-section {
    padding: 4rem 10%;
    background-color: var(--bg-cream); /* Fondo crema establecido previamente */
}

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

.articles-header h2 {
    font-size: 3.5rem;
    color: var(--text-color);
}

.divider-line {
    border: none;
    border-top: 3px solid var(--text-color);
    margin: 1rem auto;
    width: 100%;
}

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

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

.article-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-title {
    color: var(--title-color); /* Azul Acero */
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.article-excerpt {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Empuja el enlace hacia abajo si los textos tienen distinta longitud */
}

.article-link {
    color: #D4A000; /* Tono de amarillo ligeramente más oscuro para mejor lectura sobre fondo crema */
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.article-link:hover {
    color: var(--title-color);
}
/* ================= PÁGINAS DE CATÁLOGO (MACHOS/HEMBRAS) ================= */
.catalog-page {
    padding: 4rem 10%;
    background-color: var(--bg-cream);
}

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

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

.dog-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* Sombra suave y limpia */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ================= CARRUSEL DE TARJETA ================= */
.carousel-container {
    position: relative;
    width: 100%;
    height: 300px; /* Altura de la imagen */
    overflow: hidden;
    background-color: #f0f4f8; /* Color de fondo por si la foto no carga rápido */
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0; /* Asegura que las imágenes no se aplasten */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(26, 54, 93, 0.5); /* Azul institucional transparente */
    color: #ffffff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: var(--block-color); /* Azul oscuro sólido */
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* ================= INFORMACIÓN DE LA TARJETA ================= */
.dog-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permite que los botones siempre se alineen al fondo */
}

.dog-name {
    color: var(--block-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.dog-details {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Píldora de Estado (Disponible) */
.status-pill {
    align-self: flex-start;
    background-color: #d1e7dd; /* Verde pastel */
    color: #0f5132; /* Verde oscuro */
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

/* ================= BOTONES DE ACCIÓN ================= */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: auto; /* Empuja los botones hacia el final de la tarjeta */
}

.card-actions a {
    text-align: center;
    padding: 0.7rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Botón Ver Pedigree (Borde) */
.btn-outline {
    color: var(--block-color);
    border: 2px solid var(--block-color);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--block-color);
    color: #ffffff;
}

/* Botón Adquirir (Sólido) */
.btn-solid {
    background-color: var(--accent-color); /* Amarillo Dorado */
    color: var(--text-color);
    border: 2px solid var(--accent-color);
}

.btn-solid:hover {
    background-color: #e6a800; /* Dorado ligeramente más oscuro */
    border-color: #e6a800;
}
/* ================= PÁGINA DE CONTACTO ================= */
.contact-page {
    padding: 3rem 5%;
    background-color: var(--bg-cream);
    min-height: 70vh;
}

.contact-wrapper {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    gap: 4rem;
    align-items: center;
}

/* Columna de Acción (Botones) */
.contact-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-intro {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-contact:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.25);
}

.btn-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Colores específicos de marca para los botones */
.btn-whatsapp { background-color: #25D366; }
.btn-phone { background-color: var(--title-color); }
.btn-facebook { background-color: #1877F2; }

/* Columna de Collage (Fotos Animadas) */
.contact-collage {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

.collage-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    /* Animación de flotación suave */
    animation: float-img 6s ease-in-out infinite;
}

/* Tamaños irregulares para dar estilo de Collage */
.img-tall {
    grid-row: span 2;
    height: 100%;
    min-height: 375px;
}
.img-wide {
    grid-column: span 2;
    height: 200px;
}

/* Retrasos escalonados para que cada foto flote en distinto momento */
.collage-img:nth-child(1) { animation-delay: 0s; }
.collage-img:nth-child(2) { animation-delay: 1.5s; }
.collage-img:nth-child(3) { animation-delay: 3s; }
.collage-img:nth-child(4) { animation-delay: 0.5s; }

/* Keyframes de flotación */
@keyframes float-img {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* ================= RESPONSIVIDAD (MÓVILES) ================= */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column-reverse; /* Pone las fotos arriba y los botones abajo en celular */
        gap: 3rem;
    }

    .btn-contact {
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
    }
    
    .img-tall {
        min-height: 250px;
    }
}
/* ================= PÁGINA EN MANTENIMIENTO ================= */
.maintenance-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
    padding: 4rem 5%;
    background-color: var(--bg-cream);
}

.maintenance-text {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 1rem 0 2rem 0;
}

.maintenance-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.maintenance-actions a {
    text-align: center;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
