/* styles.css - CSS principal del sitio Mixi Hakuna Matata */

/* Hero Section fondo solo imagen */
#inicio.hero {
    padding: 80px 0 60px;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

/* Fondo decorativo para Sobre Nosotros */
#nosotros {
    background: linear-gradient(135deg, #fffaf6 80%, #2ec4b6 20%);
    position: relative;
}
#nosotros::after {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, #ff8c42 60%, transparent 100%);
    opacity: 0.12;
    z-index: 0;
}
#nosotros > .container {
    position: relative;
    z-index: 1;
}

/* Fondo decorativo para Nuestra Labor */
#labor {
    background: linear-gradient(120deg, #2ec4b6 0%, #fffaf6 80%);
    position: relative;
}
#labor::before {
    content: '';
    position: absolute;
    top: -40px; left: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, #ff8c42 60%, transparent 100%);
    opacity: 0.13;
    z-index: 0;
}
#labor > .container {
    position: relative;
    z-index: 1;
}

/* Fondo decorativo para Colabora */
#colabora {
    background: linear-gradient(135deg, #fffaf6 70%, #2ec4b6 30%);
    position: relative;
}
#colabora::after {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, #ff8c42 60%, transparent 100%);
    opacity: 0.14;
    z-index: 0;
}
#colabora > .container {
    position: relative;
    z-index: 1;
}

/* Footer fondo color sólido */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
}

/* Fondo decorativo para Carrusel de Imágenes de Alto Impacto */
#galeria {
    position: relative;
    background: linear-gradient(120deg, #fffaf6 80%, #ff8c42 20%);
    overflow: hidden;
}
#galeria .impact-bg {
    position: absolute;
    top: -40px;
    left: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, #2ec4b6 60%, transparent 100%);
    opacity: 0.13;
    z-index: 0;
}
#galeria .impact-bg2 {
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #ff8c42 60%, transparent 100%);
    opacity: 0.12;
    z-index: 0;
}
#galeria .section-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
    animation: popTitleImpact 1s ease;
}
@keyframes popTitleImpact {
    0% {transform: scale(0.8); opacity: 0;}
    100% {transform: scale(1); opacity: 1;}
}
#galeria .impact-subtitle {
    font-size: 1.2rem;
    color: #2b2d42;
    font-weight: 600;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #2ec4b6 0%, #ff8c42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}
#impactCarousel .carousel-control-prev-icon,
#impactCarousel .carousel-control-next-icon {
    filter: drop-shadow(0 0 8px #c4882e);
    background-color: #c4882e;
    border-radius: 50%;
    padding: 8px;
}
#impactCarousel .carousel-indicators [data-bs-target] {
    background-color: var(--secondary-color);
}
#impactCarousel .carousel-caption {
    font-size: 1.3rem;
    background: linear-gradient(90deg, rgba(46,196,182,0.7) 0%, rgba(255,140,66,0.7) 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
}
#impactCarousel .carousel-item img {
    filter: brightness(0.97) contrast(1.18) saturate(1.18);
    transition: transform 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}
#impactCarousel .carousel-item.active img {
    transform: scale(1.07);
}

/* Fondo decorativo para Galería / Adopción mejorado */
#adopta {
    position: relative;
    background: linear-gradient(135deg, #fffaf6 80%, #2ec4b6 20%);
    overflow: hidden;
}
#adopta .gallery-bg {
    position: absolute;
    top: -60px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ff8c42 60%, transparent 100%);
    opacity: 0.15;
    z-index: 0;
}
#adopta .gallery-bg2 {
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #2ec4b6 60%, transparent 100%);
    opacity: 0.12;
    z-index: 0;
}
#adopta .gallery-bg3 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: url('https://cdn-icons-png.flaticon.com/512/616/616408.png') center/contain no-repeat;
    opacity: 0.08;
    transform: translate(-50%, -50%) rotate(-15deg);
    z-index: 0;
}
#adopta .section-title {
    font-size: 2.7rem;
    letter-spacing: 2px;
    animation: popTitleAdopta 1.2s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes popTitleAdopta {
    0% {transform: scale(0.7) translateY(40px); opacity: 0;}
    100% {transform: scale(1) translateY(0); opacity: 1;}
}
#adopta .gallery-subtitle {
    font-size: 1.3rem;
    color: #2b2d42;
    font-weight: 600;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #ff8c42 0%, #2ec4b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInSubtitle 1.5s;
    text-align: center;
}
@keyframes fadeInSubtitle {
    0% {opacity: 0;}
    100% {opacity: 1;}
}
#adopta .carousel-inner {
    padding-bottom: 30px;
}
.cat-card {
    box-shadow: 0 8px 24px rgba(46,196,182,0.12);
    border-radius: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #fffaf6;
    background: linear-gradient(120deg, #fffaf6 80%, #ff8c42 20%);
    min-height: 410px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.cat-card .card-img-top {
    height: 220px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}
.cat-card .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.cat-card:hover {
    transform: scale(1.07) translateY(-8px);
    box-shadow: 0 16px 40px rgba(255,140,66,0.18);
    border-color: var(--primary-color);
}
.cat-badge {
    font-size: 1rem;
    padding: 8px 20px;
    border-radius: 22px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(46,196,182,0.12);
    margin-bottom: 8px;
    display: inline-block;
}
.cat-badge[data-status="adopcion"] {
    background-color: var(--primary-color);
    color: #fff;
}
.cat-badge[data-status="acogida"] {
    background-color: var(--secondary-color);
    color: #fff;
}
.cat-badge[data-status="especial"] {
    background-color: #2b2d42;
    color: #fff;
}
#adopta .carousel-item {
    transition: box-shadow 0.4s;
}
#adopta .carousel-item.active {
    box-shadow: 0 8px 32px rgba(46,196,182,0.13);
}
#catsCarousel .carousel-control-prev-icon,
#catsCarousel .carousel-control-next-icon {
    filter: drop-shadow(0 0 8px #ff8c42);
    background-color: #ff8c42;
    border-radius: 50%;
    padding: 8px;
}
#catsCarousel .carousel-indicators [data-bs-target] {
    background-color: var(--primary-color);
}
.cat-card {
    box-shadow: 0 8px 24px rgba(46,196,182,0.12);
    border-radius: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #fffaf6;
}
.cat-card:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 16px 40px rgba(255,140,66,0.18);
    border-color: var(--primary-color);
}
.cat-badge {
    font-size: 0.9rem;
    padding: 7px 18px;
    border-radius: 22px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(46,196,182,0.12);
}
.cat-badge[data-status="adopcion"] {
    background-color: var(--primary-color);
}
.cat-badge[data-status="acogida"] {
    background-color: var(--secondary-color);
}
.cat-badge[data-status="especial"] {
    background-color: #2b2d42;
}
:root {
    --primary-color: #ff8c42; /* Naranja cálido */
    --secondary-color: #2ec4b6; /* Verde azulado */
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--dark-color);
    background-color: #fffaf6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Navbar Transparente a Sólido */
.navbar {
    transition: all 0.4s ease;
    padding: 15px 0;
}
.navbar-scrolled {
    background-color: white !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
}
.navbar-dark .navbar-nav .nav-link {
    color: white;
    font-weight: 500;
}
.navbar-scrolled .navbar-nav .nav-link {
    color: var(--dark-color) !important;
}
.navbar-scrolled .navbar-brand {
    color: var(--primary-color) !important;
}
.navbar-brand {
    color: white;
    font-size: 1.5rem;
}

/* Botones personalizados */
.btn-custom {
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}
.btn-custom:hover {
    background-color: #e07632;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.4);
}
.btn-outline-custom {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(rgba(43, 45, 66, 0.7), rgba(43, 45, 66, 0.6)), url('../imagenes/photo-1543852786-1cf6624b9987 (1).jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}
.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Secciones */
.section-padding {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Tarjetas de Servicios */
.service-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 5px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 5px solid var(--secondary-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Carrusel de Galería de Alto Impacto */
#impactCarousel {
    box-shadow: 0 10px 40px rgba(255,140,66,0.15);
    border-radius: 30px;
    overflow: hidden;
}
#impactCarousel .carousel-inner {
    border-radius: 30px;
}
#impactCarousel .carousel-item img {
    filter: brightness(0.95) contrast(1.15) saturate(1.2);
    transition: transform 0.6s cubic-bezier(.68,-0.55,.27,1.55);
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: 450px;
    object-fit: cover;
}
#impactCarousel .carousel-item.active img {
    transform: scale(1.04);
}
#impactCarousel .carousel-caption {
    font-size: 1.3rem;
    background: linear-gradient(90deg, rgba(43,45,66,0.7) 0%, rgba(255,140,66,0.7) 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
#impactCarousel .carousel-control-prev-icon,
#impactCarousel .carousel-control-next-icon {
    filter: drop-shadow(0 0 6px #ff8c42);
}
#impactCarousel .carousel-indicators [data-bs-target] {
    background-color: var(--primary-color);
}
.cat-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}
.cat-card:hover {
    transform: scale(1.03);
}
.cat-card img {
    height: 250px;
    object-fit: cover;
}
.cat-card .card-body {
    background-color: white;
    position: relative;
}
.cat-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Redes Sociales e Info */
.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
}
.social-circle:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* Animaciones JS (Scroll Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
}
footer a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: var(--primary-color);
}

/* Responsive meta for Apple devices */
@media (max-width: 991px) {
    .section-padding { padding: 40px 0; }
    .hero { height: 60vh; padding-top: 60px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .service-card { padding: 18px; }
    .section-title { font-size: 1.5rem; margin-bottom: 30px; }
    #impactCarousel .carousel-item img,
    #galeria .carousel-item img { height: 220px; max-height: 220px; }
    .cat-card img { height: 140px; }
    .cat-card .card-body { font-size: 0.95rem; }
    .gallery-subtitle, .impact-subtitle { font-size: 1rem; margin-bottom: 18px; }
    .navbar-brand { font-size: 1.1rem; }
    .btn-custom, .btn-outline-custom { padding: 8px 16px; font-size: 1rem; }
    .social-circle { width: 38px; height: 38px; font-size: 1.1rem; }
}
@media (max-width: 767px) {
    /*.hero { height: 45vh; padding-top: 40px; } */
    .hero h1 { font-size: 1.3rem; }
    .section-title { font-size: 1.1rem; }
    .gallery-subtitle, .impact-subtitle { font-size: 0.9rem; }
    .cat-card .card-body { font-size: 0.9rem; }
    .service-card { padding: 10px; }
    .cat-card img { height: 90px; }
    .social-circle { width: 32px; height: 32px; font-size: 1rem; }
}

/* Cookie Consent Banner Mejorado */
.cookie-banner-animated {
    animation: cookieSlideUp 0.7s ease;
    border-radius: 1rem 1rem 0 0;
    border-top: 2px solid #ffe082;
}
@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
#cookieConsentBanner .btn {
    min-width: 110px;
}
@media (max-width: 768px) {
    #cookieConsentBanner {
        font-size: 0.95rem;
        padding: 1rem 0.5rem;
    }
    #cookieConsentBanner .d-flex.flex-md-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    #cookieConsentBanner .d-flex.flex-md-row > .d-flex {
        margin-bottom: 0.5rem;
    }
    #cookieConsentBanner .btn {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
}

/* Carrusel en abanico personalizado */
.fan-carousel-wrapper {
    min-height: 420px;
    position: relative;
    margin-bottom: 2rem;
}
.fan-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 620px;
    height: 340px;
    margin: 0 auto;
}
.fan-carousel-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.6;
    z-index: 1;
    transition: transform 0.9s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.6s, z-index 0.5s, box-shadow 0.6s;
    box-shadow: 0 16px 48px 0 rgba(46,196,182,0.18), 0 2px 32px 0 rgba(255,140,66,0.18);
    border-radius: 24px;
    overflow: hidden;
    filter: drop-shadow(0 0 18px #ff8c42) drop-shadow(0 0 8px #2ec4b6);
    animation: fanFadeIn 1.2s;
}
@keyframes fanFadeIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.7) rotate(-10deg); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.85); }
}
.fan-carousel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    animation: fanImgPop 1.2s;
}
@keyframes fanImgPop {
    0% { transform: scale(0.8); }
    100% { transform: scale(1); }
}
.fan-active {
    transform: translate(-50%, -50%) scale(1.12) rotate(0deg);
    opacity: 1;
    z-index: 3;
    box-shadow: 0 24px 64px 0 rgba(255,140,66,0.22), 0 4px 40px 0 rgba(46,196,182,0.22);
    filter: drop-shadow(0 0 24px #ff8c42) drop-shadow(0 0 12px #2ec4b6);
    animation: fanActivePop 1.2s;
}
@keyframes fanActivePop {
    0% { transform: translate(-50%, -50%) scale(0.9) rotate(0deg); }
    100% { transform: translate(-50%, -50%) scale(1.12) rotate(0deg); }
}
.fan-left {
    transform: translate(-50%, -50%) scale(0.85) rotate(-24deg);
    left: 20%;
    opacity: 0.7;
    z-index: 2;
}
.fan-right {
    transform: translate(-50%, -50%) scale(0.85) rotate(24deg);
    left: 80%;
    opacity: 0.7;
    z-index: 2;
}
.fan-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ff8c42 60%, #2ec4b6 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(255,140,66,0.18), 0 2px 16px rgba(46,196,182,0.18);
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    animation: fanBtnPop 1.2s;
}
@keyframes fanBtnPop {
    0% { transform: scale(0.7); }
    100% { transform: scale(1); }
}
.fan-carousel-btn:hover {
    background: linear-gradient(135deg, #2ec4b6 60%, #ff8c42 100%);
    transform: scale(1.08);
}
.fan-prev {
    left: 0;
}
.fan-next {
    right: 0;
}
@media (max-width: 900px) {
    .fan-carousel {
        width: 98vw;
        height: 220px;
    }
    .fan-carousel-img {
        width: 140px;
        height: 140px;
        border-radius: 16px;
    }
    .fan-active {
        border-radius: 16px;
    }
}

/* Responsive global para todo tipo de pantalla */
@media (max-width: 1200px) {
    .container {
        max-width: 98vw;
        padding-left: 12px;
        padding-right: 12px;
    }
    .section-title {
        font-size: 2rem;
    }
}
@media (max-width: 900px) {
    .container {
        max-width: 100vw;
        padding-left: 8px;
        padding-right: 8px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .gallery-subtitle, .impact-subtitle {
        font-size: 1rem;
    }
    .cat-card {
        min-height: 340px;
    }
    .fan-carousel {
        width: 98vw;
        height: 180px;
    }
    .fan-carousel-img {
        width: 120px;
        height: 120px;
        border-radius: 16px;
    }
    .fan-active {
        border-radius: 16px;
    }
}
@media (max-width: 600px) {
    .container {
        max-width: 100vw;
        padding-left: 4px;
        padding-right: 4px;
    }
    .section-title {
        font-size: 1.1rem;
    }
    .gallery-subtitle, .impact-subtitle {
        font-size: 0.9rem;
    }
    .cat-card {
        min-height: 220px;
    }
    .cat-card .card-img-top {
        height: 110px;
    }
    .fan-carousel {
        width: 98vw;
        height: 120px;
    }
    .fan-carousel-img {
        width: 70px;
        height: 70px;
        border-radius: 10px;
    }
    .fan-active {
        border-radius: 10px;
    }
    footer {
        padding: 20px 0 10px;
        font-size: 0.9rem;
    }
}
