:root {
    /* Paleta de colores principal (tonos tierra) */
    --primary: #6B5340;           /* Café principal */
    --primary-light: #8C6A56;     /* Café claro */
    --primary-dark: #4D3A2D;      /* Café oscuro */
    --primary-soft: #A38B7D;      /* Café suavizado */
    
    /* Colores complementarios */
    --secondary: #7A8C7D;         /* Verde montaña */
    --accent: #D4BFA8;            /* Beige claro */
    --accent-light: #E8D9C8;      /* Beige muy claro */
    --accent-dark: #BFA58F;       /* Beige oscuro */
    
    /* Escala de grises */
    --light: #F5F0EB;             /* Fondo principal */
    --lighter: #FAF7F4;           /* Fondo más claro */
    --dark: #2E2E2E;              /* Texto principal */
    --darker: #1A1A1A;            /* Texto fuerte */
    --gray: #6C757D;              /* Texto secundario */
    --gray-light: #A8A8A8;        /* Bordes y detalles */
    
    /* Colores funcionales */
    --success: #5C8D49;           /* Verde éxito */
    --warning: #E4A84C;           /* Amarillo advertencia */
    --error: #C84E4E;             /* Rojo error */
    --info: #4A8DCC;              /* Azul información */
    
    /* Textos */
    --text-light: #FFFFFF;        /* Texto claro */
    --text-dark: var(--dark);     /* Texto oscuro */
    
    /* Transparencias */
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --overlay-light: rgba(255, 255, 255, 0.85);
    
    /* Efectos */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 4px 20px rgba(107, 83, 64, 0.3);
    
    /* Transiciones */
    --transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: all 0.2s ease-in-out;
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Tipografía */
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Espaciados */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
    
    /* Bordes */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Tamaños */
    --header-height: 100px;
    --header-height-scrolled: 80px;
    --max-width: 1440px;
    --container-padding: 5%;
}

/* ============== */
/* RESET Y BASE */
/* ============== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===================== */
/* SECCIÓN DE CONTACTO */
/* ===================== */
.contact-section {
    padding: 5rem var(--container-padding);
    background: linear-gradient(to bottom, var(--lighter) 0%, var(--light) 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/paw-pattern-light.png') repeat;
    opacity: 0.03;
    z-index: 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.contact-header .divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    margin: 1rem auto;
    border-radius: 2px;
}

.contact-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    transition: var(--transition-fast);
    background-color: var(--lighter);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 83, 64, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-submit {
    text-align: center;
    margin-top: 1rem;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-contact i {
    margin-left: 0.5rem;
    transition: var(--transition-fast);
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-contact:hover i {
    transform: translateX(5px);
}

.btn-contact:active {
    transform: translateY(0);
}

/* ----------------- */
/* HEADER PRINCIPAL */
/* ----------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: white;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--container-padding);
    transition: height 0.4s ease, background-color 0.4s ease;
    border-bottom: 5px solid var(--accent);
    will-change: height, transform, background-color;
}

.header.scrolled {
    height: var(--header-height-scrolled);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateZ(0);
}

/* CONTENEDOR DEL LOGO */
.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 1001;
    will-change: transform;
}

/* LOGO PRINCIPAL */
.logo-img {
    height: 150px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: drop-shadow(var(--shadow-sm));
    transform: translateY(18%) translateZ(0);
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* ESTADO SCROLLED */
.header.scrolled .logo-img {
    height: 100px;
    transform: translateY(8%) translateZ(0);
    transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Navegación principal */
.nav > ul {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav > ul > li {
    position: relative;
    margin-left: var(--space-xl);
}

.nav > ul > li:first-child {
    margin-left: 0;
}

.nav > ul > li > a {
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark);
    padding: var(--space-md) 0;
    position: relative;
    display: block;
    transition: var(--transition);
}

.nav > ul > li > a:hover {
    color: var(--primary);
}

/* Subrayado animado */
.nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav > ul > li > a:hover::after,
.nav > ul > li > a.active::after {
    width: 100%;
}

/* Dropdown Desktop */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background-color: #fff;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-top: 3px solid var(--accent);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    text-align: left;
    padding: var(--space-sm) 0;
    display: block;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

/* ITEMS DEL MENÚ */
.dropdown-menu li {
    width: 100%;
    margin: 0;
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: var(--space-sm) var(--space-lg);
    color: var(--dark);
    font-weight: 500;
    transition: background-color 0.2s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--accent-light);
    color: var(--primary-dark);
}

/* Blog y Galería */
.blog-hero {
    height: 50vh;
    min-height: 300px;
    background: linear-gradient(var(--overlay-dark), var(--overlay-dark)), 
                url('../images/blog-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
    color: white;
    padding: 0 5%;
}

.blog-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.blog-hero-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 3rem 0;
    padding: 0 5%;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: white;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 5% 5rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--overlay-dark), transparent);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Newsletter */
.newsletter-section {
    padding: 4rem 5%;
    background-color: var(--primary);
    color: white;
    text-align: center;
}

.newsletter-content h2 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 50px 50px 0;
    padding: 0 2rem;
    background-color: var(--primary-dark);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--dark);
}

/* ----------------- */
/* MENÚ MÓVIL COMPLETO */
/* ----------------- */

/* Responsive */
@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .contact-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .header {
        justify-content: flex-start;
    }
    
    .logo-container {
        position: static;
        transform: none;
        order: 2;
        flex-grow: 1;
        justify-content: center;
    }
    
    .nav {
        order: 3;
        margin-left: 0;
    }
    
    .hamburger {
        display: flex;
        order: 1;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: var(--space-xl) var(--container-padding);
        overflow-y: auto;
        transition: var(--transition);
        z-index: 1000;
    }

    .nav.active {
        left: 0;
    }

    .nav > ul {
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
        align-items: center;
    }

    .nav > ul > li {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-bottom: var(--space-sm);
    }

    .nav > ul > li > a {
        justify-content: center;
        width: 100%;
        padding: var(--space-md) 0;
        font-size: 1.1rem;
    }

    .nav > ul > li > a::after {
        display: none;
    }

    /* DROPDOWN MOBILE */
    .dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown > a {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 80%;
        background: var(--lighter);
        border: none;
        box-shadow: none;
        border-radius: var(--radius-md);
        margin-top: var(--space-xs);
        overflow: hidden;
        max-height: 0;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease, padding 0.3s ease;
        transform: none !important;
        align-items: center;
        text-align: center;
    }

    .dropdown.active .dropdown-menu {
        display: flex;
        flex-direction: column;
        max-height: 500px;
        padding: var(--space-sm) 0;
    }

    .dropdown-menu li {
        width: 100%;
    }

    .dropdown-menu li a {
        padding: var(--space-sm) var(--space-lg);
        font-size: 1rem;
        color: var(--dark);
        justify-content: center;
        text-align: center;
    }

    .dropdown-menu li a:hover {
        background: var(--accent-light);
    }

    .dropdown > a .fa-chevron-down {
        transition: transform 0.3s ease;
        margin-left: var(--space-sm);
    }

    .dropdown.active > a .fa-chevron-down {
        transform: rotate(180deg);
    }
}

/* Botón Hamburguesa */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    z-index: 1001;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background: var(--dark);
    transition: var(--transition);
    transform-origin: left center;
}

.hamburger.active .line:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}

/* ----------------- */
/* SECCIÓN HERO */
/* ----------------- */
.hero {
    position: relative;
    height: calc(100vh - var(--header-height));
    min-height: 600px;
    overflow: hidden;
    background-color: var(--primary-soft);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider img.active-slide {
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    z-index: 2;
    width: 90%;
    max-width: 900px;
    padding: var(--space-xxl);
    background: rgba(0, 0, 0, 0.35);
    border-radius: 30px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: var(--space-xxl);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }
    
    .hero-content {
        padding: var(--space-lg);
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

/* ===== BREEDS RAZAS DESTACADAS ===== */
.breeds-showcase {
    padding: var(--space-xxl) 0;
    background-color: var(--light);
}

/* Contenedor principal centrado */
.breeds-showcase .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem var(--container-padding);
}

/* Flex container para las cards - MÁS ESPACIADO */
.breeds-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
}

/* Card general */
.breed-card {
    background-color: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 650px;
    flex: 1 1 calc(50% - 2.5rem);
    max-width: 520px;
}

.breed-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Imagen CUADRADA */
.breed-image {
    height: auto;
    overflow: hidden;
    flex-shrink: 0;
    aspect-ratio: 1/1;
}

.breed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
    display: block;
}

.breed-card:hover .breed-image img {
    transform: scale(1.08);
}

/* Información */
.breed-info {
    padding: var(--space-xxl);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    height: 100%;
}

.breed-info h3 {
    font-size: 2.2rem;
    margin-bottom: var(--space-lg);
    color: var(--primary);
    font-family: var(--font-heading);
    line-height: 1.2;
}

.breed-info p {
    margin-bottom: var(--space-xl);
    color: var(--gray);
    line-height: 1.8;
    font-size: 1.15rem;
    flex-grow: 1;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botón */
.btn-container {
    margin-top: auto;
    padding-top: var(--space-lg);
    flex-shrink: 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.breed-info .btn {
    align-self: center;
    padding: var(--space-md) var(--space-xxl);
    font-size: 1.1rem;
    min-width: 200px;
}

/* ===== RESPONSIVE ===== */

/* Pantallas grandes intermedias */
@media (max-width: 1200px) {
    .breeds-grid {
        gap: 4rem;
    }

    .breed-card {
        flex: 1 1 calc(50% - 2rem);
        min-height: 600px;
    }
    .breed-info { padding: var(--space-xl); }
    .breed-info h3 { font-size: 2rem; }
    .breed-info p { min-height: 100px; font-size: 1.1rem; }
}

/* Tablets → 1 sola columna */
@media (max-width: 992px) {
    .breeds-grid {
        gap: 3rem;
    }

    .breed-card {
        flex: 1 1 100%;
        min-height: 550px;
        max-width: 100%;
    }
    .breed-info { padding: var(--space-xl); }
    .breed-info h3 { font-size: 1.9rem; }
    .breed-info p { min-height: 90px; font-size: 1.1rem; }
}

/* Celulares - APILAMIENTO VERTICAL */
@media (max-width: 768px) {
    .breeds-grid {
        gap: 2.5rem;
        flex-direction: column;
        align-items: center;
    }

    .breed-card {
        flex: 1 1 100%;
        min-height: 500px;
        width: 100%;
        max-width: 100%;
    }
    .breed-info { padding: var(--space-lg); }
    .breed-info h3 { font-size: 1.7rem; }
    .breed-info p { 
        min-height: 80px; 
        font-size: 1rem; 
        margin-bottom: var(--space-xl); 
    }
}

/* Teléfonos muy pequeños */
@media (max-width: 480px) {
    .breeds-showcase .container { padding: 0 var(--space-md); }
    .breeds-grid {
        gap: 2rem;
    }

    .breed-card { 
        min-height: 450px;
    }
    .breed-info { padding: var(--space-lg) var(--space-md); }
    .breed-info h3 { font-size: 1.5rem; }
    .breed-info p { min-height: 70px; font-size: 0.95rem; }
    .breed-info .btn { width: 100%; min-width: auto; }
}

/* Pantallas muy grandes */
@media (min-width: 1600px) {
    .breeds-showcase .container { max-width: 1600px; }
    .breeds-grid { 
        gap: 5.5rem; 
        max-width: 1400px; 
    }
    .breed-card { 
        min-height: 700px; 
        max-width: 600px; 
        flex: 1 1 calc(50% - 2.75rem);
    }
    .breed-info h3 { font-size: 2.4rem; }
    .breed-info p { font-size: 1.2rem; min-height: 140px; }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ----------------- */
/* SOBRE NOSOTROS */
/* ----------------- */
.about-section {
  padding: 5rem 0;
  background-color: #f9f5f0;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('../images/paw-pattern-light.png') repeat;
  background-size: 120px; /* ajusta al gusto */
  opacity: 0.8; /* entre 0.4 y 0.7 suele quedar bien */
  filter: brightness(0.6) contrast(1.3); /* lo hace más notorio */
  z-index: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #6B5340;
  display: inline-block;
  padding-bottom: 1rem;
}

.divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #D4BFA8, #6B5340);
  margin: 0 auto;
  border-radius: 2px;
}

.about-description {
  max-width: 800px;
  margin: 0 auto 4rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #4e3b2a;
  z-index: 1;
  position: relative;
}

.about-description p {
  margin-bottom: 1.5rem;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  z-index: 1;
  position: relative;
}

.about-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 280px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-icon {
  font-size: 2.5rem;
  color: #6B5340;
  margin-bottom: 1rem;
}

.about-card p {
  font-size: 1rem;
  color: #4e3b2a;
  line-height: 1.5;
}

/* Diseño de cards */
.about-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-card {
  flex: 1 1 calc(33.333% - 2rem); /* 3 tarjetas por fila en escritorio */
  max-width: calc(33.333% - 2rem);
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: all 0.3s ease;
  border-top: 3px solid #D4BFA8;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #D4BFA8, #8C6A56);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
}

.about-card p {
  color: #5a5a5a;
  line-height: 1.7;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .about-description {
    padding: 0 1.5rem; /* margen interno a los lados */
  }

  .about-content {
    padding: 0 1rem; /* también un poco de aire para las tarjetas */
  }
  .about-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Animaciones */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.about-icon {
  animation: float 4s ease-in-out infinite;
}

.about-card:nth-child(2) .about-icon {
  animation-delay: 0.5s;
}

.about-card:nth-child(3) .about-icon {
  animation-delay: 1s;
}

/* ----------------- */
/* FOOTER COMPLETO */
/* ----------------- */
.footer {
  background-color: var(--dark);
  color: white;
  padding: var(--space-xxl) 0 var(--space-lg);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xxl);
  margin-bottom: var(--space-xxl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.footer-section {
  position: relative;
}

.footer-section h3 {
  font-size: 1.8rem;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

.footer-section p {
  margin-bottom: var(--space-md);
  color: #ccc;
  line-height: 1.8;
}

.footer-section ul li {
  margin-bottom: var(--space-sm);
}

.footer-section ul li a {
  color: #ccc;
  transition: var(--transition);
  display: block;
  padding: var(--space-xs) 0;
  position: relative;
}

.footer-section ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-section ul li a:hover::after {
  width: 30px;
}

.footer .social-icons {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.footer .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer .social-icons a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xxl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999;
  font-size: 0.9rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--container-padding) 0;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.legal-links a {
  color: #999;
  transition: var(--transition);
  font-size: 0.85rem;
}

.legal-links a:hover {
  color: var(--accent);
}


.social-icons {
  display: flex;
  gap: 20px;
  justify-content: start;
  flex-wrap: wrap;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.social-item a {
  font-size: 1.8rem;
  color: white;
  transition: color 0.3s ease;
}

.social-item a:hover {
  color: var(--primary-light);
}

.social-item span {
  font-size: 0.75rem;
  margin-top: 5px;
  color: #ccc;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  .social-icons {
    justify-content: center;
  }
}

/* ----------------- */
/* BOTÓN WHATSAPP */
/* ----------------- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
  animation: none;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ----------------- */
/* ANIMACIONES */
/* ----------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-right"] {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

[data-aos="fade-right"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

[data-aos="fade-left"] {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

[data-aos="fade-left"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

/* ----------------- */
/* DISEÑO RESPONSIVO */
/* ----------------- */

/* 1. MENÚ MÓVIL FUNCIONAL */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--light);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: var(--space-xl);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    z-index: 999;
  }

  .nav.active {
    transform: translateX(0);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
  }

  .nav > ul {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .nav > ul > li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .nav > ul > li > a {
    padding: var(--space-md) var(--space-lg);
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Dropdown móvil mejorado */
.dropdown-menu {
    display: none;
    width: 80%; /* Mayor porcentaje de ancho para darle más espacio */
    background: rgba(0, 0, 0, 0.15); /* Fondo sutil, en lugar de blanco */
    border-radius: var(--radius-lg); /* Usar un radio más grande para bordes más redondeados */
    margin: var(--space-md) auto; /* Un poco más de espacio superior e inferior */
    padding: var(--space-sm); /* Agregar padding para hacer el contenido más espacioso */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra suave para dar profundidad */
    transform: translateY(10px); /* Un pequeño movimiento hacia abajo para suavizar la aparición */
    transition: all 0.3s ease; /* Animación suave para abrir/cerrar el menú */
  }

 .dropdown.active .dropdown-menu {
  display: block;
  animation: fadeIn 0.3s ease-out;
  margin-top: var(--space-lg); /* Añadir un margen superior para alejarlo del logo */
}

.dropdown-menu li a {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  color: var(--primary-dark);
  margin-top: var(--space-xs); /* Margen superior para separar un poco los enlaces entre sí */
}

.dropdown > a::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: var(--space-sm);
  transition: transform 0.3s ease;
}

.dropdown.active > a::after {
  transform: rotate(180deg);
}

  /* Evitar scroll cuando el menú está abierto */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 2. SECCIÓN SOBRE NOSOTROS MEJORADA */
.about-section {
  position: relative;
  padding: var(--space-xxl) 0;
  background-color: white;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/background-paw.png') repeat;
  opacity: 0.03;
  z-index: 0;
}

.about-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl);
  background-color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--accent-light);
}

.about-content p {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-xl);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark);
}

.about-content p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  height: 80%;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.about-section h2 {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-xxl);
  padding-bottom: var(--space-md);
}

.about-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 2px;
}

/* 3. BOTONES "CONOCER MÁS" MEJORADOS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-light);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  opacity: 0;
  z-index: -1;
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--text-light);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(1px);
}

/* Efecto de onda al hacer clic */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}