/* ===================================
   VARIABLES Y RESET
   =================================== */
:root {
    --primary-color: #FF8B3D;
    --secondary-color: #4CAF50;
    --tertiary-color: #FFA726;
    --dark-color: #2C3E50;
    --light-color: #F5F5F5;
    --white: #FFFFFF;
    --gray: #7F8C8D;
    --dogs-color: #FF6B6B;
    --cats-color: #4ECDC4;
    --others-color: #95E1D3;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

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

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

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

.container-with-sidebar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-title i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* ===================================
   HEADER Y NAVEGACIÓN
   =================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===================================
   HERO BANNER
   =================================== */
.hero-banner {
    position: relative;
    height: 500px;
    background-image: url('https://images.unsplash.com/photo-1450778869180-41d0601e046e?w=1200');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-dogs {
    background-image: url('https://images.unsplash.com/photo-1587300003388-59208cc962cb?w=1200');
}

.hero-cats {
    background-image: url('https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?w=1200');
}

.hero-others {
    background-image: url('https://images.unsplash.com/photo-1585110396000-c9ffd4e4b308?w=1200');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,139,61,0.7), rgba(76,175,80,0.7));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

/* ===================================
   FILTRO POR PROVINCIA
   =================================== */
.filter-section {
    padding: 3rem 0;
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
}

.filter-container {
    max-width: 600px;
    margin: 2rem auto 0;
}

.provincia-select {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-family: 'Nunito', sans-serif;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: var(--white);
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
}

.provincia-select:hover {
    border-color: var(--dark-color);
}

.provincia-select:focus {
    outline: none;
    border-color: var(--dark-color);
    box-shadow: 0 0 0 3px rgba(255, 139, 61, 0.1);
}

/* ===================================
   CTA SECTION (Botones principales)
   =================================== */
.cta-section {
    padding: 4rem 0;
    background: var(--white);
}

.cta-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cta-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cta-button i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cta-dogs {
    background: linear-gradient(135deg, #FF6B6B, #EE5A6F);
}

.cta-cats {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
}

.cta-others {
    background: linear-gradient(135deg, #95E1D3, #6BCF8E);
}

.cta-button:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.cta-button.active {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    opacity: 1;
    cursor: default;
    border: 3px solid rgba(255,255,255,0.5);
}

.cta-button.active:hover {
    transform: translateY(-4px);
}

/* ===================================
   BANNERS PUBLICITARIOS
   =================================== */
.ad-banner {
    margin: 2rem auto;
    text-align: center;
}

.ad-placeholder, .ad-placeholder-mobile {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

.ad-horizontal .ad-placeholder {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

.ad-mobile {
    display: none;
}

.ad-placeholder-mobile {
    width: 320px;
    height: 100px;
    max-width: 100%;
}

.sidebar-ad {
    flex-shrink: 0;
}

.ad-placeholder-vertical {
    width: 300px;
    height: 600px;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    position: sticky;
    top: 100px;
}

/* ===================================
   CARRUSEL
   =================================== */
.carousel-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--white), var(--light-color));
}

.carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.carousel-container {
    overflow: hidden;
    padding: 1rem 0;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 280px;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.carousel-item-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.carousel-item-content {
    padding: 1rem;
}

.carousel-item-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.carousel-item-info {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.3rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 10;
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

.carousel-btn:hover {
    background: var(--dark-color);
    transform: translateY(-50%) scale(1.1);
}

/* ===================================
   GRID DE ANIMALES
   =================================== */
.animals-grid-section {
    padding: 4rem 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

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

.grid-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
}

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

.animal-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.animal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.animal-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block; /* ✅ Asegurar que la imagen se muestre */
}

.animal-card-content {
    padding: 1.5rem;
}

.animal-card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.animal-card-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray);
    font-size: 0.95rem;
}

.animal-card-info i {
    color: var(--primary-color);
    width: 20px;
}

.animal-card-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.badge-perro {
    background: #ffe0e0;
    color: var(--dogs-color);
}

.badge-gato {
    background: #e0f7f5;
    color: var(--cats-color);
}

.badge-otro {
    background: #e0ffe0;
    color: var(--others-color);
}

.load-more-container {
    text-align: center;
}

.btn-load-more {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-load-more:hover {
    background: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-load-more i {
    margin-left: 0.5rem;
}

/* ===================================
   DISCLAIMER
   =================================== */
.disclaimer-section {
    padding: 3rem 0;
    background: #fff3e0;
}

.disclaimer-box {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    display: flex;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.disclaimer-box i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.disclaimer-box p {
    line-height: 1.8;
    color: var(--dark-color);
}

/* ===================================
   FORMULARIO DE CONTACTO
   =================================== */
.contact-section {
    padding: 4rem 0;
    background: var(--white);
}

.contact-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-submit:hover {
    background: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-submit i {
    margin-right: 0.5rem;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-column h3,
.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-column p {
    margin-bottom: 1rem;
    color: #bbb;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    text-align: center;
    color: #bbb;
}

.footer-bottom small {
    font-size: 0.85rem;
}

/* ===================================
   RESPONSIVE - TABLET
   =================================== */
@media (max-width: 992px) {
    .sidebar-ad {
        display: none;
    }

    .container-with-sidebar {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }
}

/* ===================================
   RESPONSIVE - MÓVIL
   =================================== */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        display: none;
    }

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

    .menu-toggle {
        display: flex;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .cta-buttons {
        grid-template-columns: 1fr;
    }

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

    .ad-banner.ad-horizontal {
        display: none;
    }

    .ad-mobile {
        display: block;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .animals-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}