/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    /* Color Palette - Aventura Logo Extracted */
    --color-primary-yellow: #fcbf01; /* Logo Yellow */
    --color-primary-orange: #f55f10; /* Logo Orange */
    --color-jungle-green: #2ecc71; /* Bright Fun Green */
    --color-sky-blue: #27829a; /* Logo Teal */
    --color-light-cloud: #edffff; /* Logo Light Blue/White */
    --color-wood-brown: #cf7f44; /* Logo Brown */
    --color-text-dark: #18252f; /* Logo Navy Dark */
    --color-white: #ffffff;

    /* Fonts */
    --font-heading: 'Baloo 2', cursive;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --container-width: 1200px;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-light-cloud);
    color: var(--color-text-dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-wood-brown);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary-orange);
    color: var(--color-white);
    box-shadow: 0 4px 0 #cc7000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #ff9933;
    box-shadow: 0 6px 0 #cc7000;
}

.btn-secondary {
    background-color: var(--color-jungle-green);
    color: var(--color-white);
    box-shadow: 0 4px 0 #1b6e1b;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('../img/hero-bg.jpg');
    /* Placeholder */
    background-size: cover;
    background-position: center;
    background-color: var(--color-sky-blue);
    /* Fallback */
    padding: 80px 0;
    text-align: left;
    color: var(--color-white);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.hero-logo {
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    animation: bounceIn 1s ease-out;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    text-shadow: 2px 2px 0 var(--color-wood-brown);
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--color-jungle-green);
}

/* Cards (Products) */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--color-primary-yellow);
    transition: transform 0.3s;
    color: var(--color-text-dark);
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 200px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 20px;
    text-align: center;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--color-primary-orange);
}

/* Footer */
.site-footer {
    background-color: var(--color-wood-brown);
    color: #ffd;
    /* Cream */
    padding: 40px 0;
    margin-top: auto;
    border-top: 5px solid var(--color-jungle-green);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.footer-section h4 {
    color: var(--color-primary-yellow);
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 60px 0;
        text-align: center;
    }

    .hero-container {
        flex-direction: column;
        gap: 30px;
    }

    .hero-logo {
        max-width: 200px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        /* Allow 2 columns on mobile */
    }

    .gallery-item {
        height: 150px;
        /* Smaller height for mobile gallery */
    }

    .grid-cards {
        grid-template-columns: 1fr;
        /* Force single column for cards */
    }
}

/* Safety for all images */
img {
    max-width: 100%;
    height: auto;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 10;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Publicist Style Enhancements --- */

/* 1. Animations */
@keyframes bounceIn {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 140, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
    }
}

.bounce-in {
    animation: bounceIn 1s ease-out;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* 2. Candy Buttons */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(45deg, #FF8C00, #FFA500);
    border: 2px solid white;
}

.btn-secondary {
    background: linear-gradient(45deg, #228B22, #32CD32);
    border: 2px solid white;
}

/* 3. Wave Dividers (SVG Data URI) */
.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C989.49 25 1113-14.29 1200 52.47V0z" fill="%23f0f8ff" opacity=".5"/><path d="M0 0v64.81c19.16 23.36 111.94 118.06 295 10.74 153.3-89.85 240-51 405.8 48.63 103.7 62.24 195.9 45.47 282.8-23.76 56.63-45.16 117.8-38.39 216.4 13V0z" fill="%23f0f8ff" opacity=".8"/></svg>') repeat-x bottom;
    background-size: cover;
    pointer-events: none;
}

/* 4. Gallery Hover Tilt */
.tilt-hover {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tilt-hover:hover {
    transform: rotate(2deg) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s;
    text-align: center;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-primary-orange);
}

.gallery-caption p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--color-text-dark);
}

/* FIX: Mobile Image Framing & Sizing */
@media (max-width: 768px) {
    /* Cards: Add 'Recuadro' (Frame) effect */
    .card {
        padding: 15px !important;
        /* Forces whitespace around content acting as frame */
        background: #fff;
    }

    .card-img {
        width: 100%;
        height: 160px;
        /* Reduced height to prevent oversized look */
        border-radius: 10px;
        /* Smooth corners inside the frame */
        background-size: cover;
        background-position: center top;
        /* Focus on top/center of images */
        margin-bottom: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* Hero: Adjust background to be less zoomed */
    .hero {
        background-position: center;
        background-attachment: scroll;
        /* Fix for mobile browsers */
    }

    .hero-logo {
        display: none;
        /* Hide logo on mobile as requested */
    }
}

/* Fix for Instalaciones Mobile Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        padding: 0 10px;
    }

    .gallery-item {
        height: auto !important;
        aspect-ratio: 1/1;
        /* Force Square */
        border-radius: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .gallery-img {
        height: 100%;
        object-fit: cover;
    }

    .gallery-caption {
        transform: translateY(0) !important;
        /* Always visible */
        background: rgba(255, 255, 255, 0.95);
        /* Almost solid white for contrast */
        padding: 5px;
        bottom: 0;
    }

    .gallery-caption h3 {
        font-size: 0.85rem;
        margin-bottom: 2px;
        color: var(--color-primary-orange) !important;
        font-weight: 800;
        text-shadow: none !important;
    }

    .gallery-caption p {
        font-size: 0.75rem;
        line-height: 1.1;
        color: #000 !important;
        /* Force Black */
        text-shadow: none !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Slide In Animation */
@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

/* --- New Modern Animations --- */

/* Float Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.floating-element {
    animation: float 4s ease-in-out infinite;
}

/* Ken Burns (Subtle Background Zoom) */
@keyframes kenburns {
    0% {
        background-size: 100%;
        background-position: center;
    }
    50% {
        background-size: 110%;
        background-position: center top;
    }
    100% {
        background-size: 100%;
        background-position: center;
    }
}

.bg-kenburns {
    animation: kenburns 30s infinite ease-in-out;
    background-repeat: no-repeat;
    background-size: cover;
}

/* --- FUN REDESIGN 2026 --- */

/* 1. Jelly Buttons */
@keyframes jelly {
  0%, 100% { transform: scale(1, 1); }
  25% { transform: scale(1.1, 0.9); }
  50% { transform: scale(0.9, 1.1); }
  75% { transform: scale(1.05, 0.95); }
}

@keyframes heartbeat {
  0% { transform: scale(1); box-shadow: 0 4px 0 #cc0000; }
  14% { transform: scale(1.1); box-shadow: 0 8px 15px rgba(255, 51, 51, 0.5); }
  28% { transform: scale(1); box-shadow: 0 4px 0 #cc0000; }
  42% { transform: scale(1.1); box-shadow: 0 8px 15px rgba(255, 51, 51, 0.5); }
  70% { transform: scale(1); box-shadow: 0 4px 0 #cc0000; }
}

.heartbeat-btn {
    animation: heartbeat 2s infinite !important;
    background-color: #ff3333 !important; /* Bright red to stand out */
    color: white !important;
    font-size: 1.15rem !important;
    padding: 10px 30px !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.heartbeat-btn:hover {
    animation: jelly 0.6s ease !important; /* overrides heartbeat on hover */
    background-color: var(--color-primary-yellow) !important;
    color: var(--color-text-dark) !important;
}

.btn-jelly {
    transition: all 0.2s ease;
    border-radius: 50px;
    box-shadow: 0 8px 0 rgba(0,0,0,0.2) !important;
}

.btn-jelly:hover {
    animation: jelly 0.6s ease;
    box-shadow: 0 4px 0 rgba(0,0,0,0.2) !important;
    transform: translateY(4px);
    background-color: var(--color-primary-yellow) !important;
    color: var(--color-text-dark) !important;
}

/* 2. Comic Cards (Skewed) */
.comic-card {
    border: 4px solid #fff;
    border-radius: 20px;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.15);
    transform: rotate(-2deg);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff;
}
.comic-card:nth-child(even) {
    transform: rotate(3deg);
}
.comic-card:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 12px 12px 0 var(--color-primary-orange);
    z-index: 10;
}
.comic-card .card-img {
    border-radius: 16px 16px 0 0;
    border-bottom: 4px dashed var(--color-primary-yellow);
}

/* 3. Bouncing Text */
@keyframes bounce-letter {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.bouncy-title span {
    display: inline-block;
    animation: bounce-letter 2s infinite;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}
.bouncy-title span:nth-child(4n+1) { color: var(--color-primary-yellow); }
.bouncy-title span:nth-child(4n+2) { color: var(--color-primary-orange); }
.bouncy-title span:nth-child(4n+3) { color: var(--color-jungle-green); }
.bouncy-title span:nth-child(4n+4) { color: var(--color-sky-blue); }

.bouncy-title span:nth-child(1) { animation-delay: 0.1s; }
.bouncy-title span:nth-child(2) { animation-delay: 0.2s; }
.bouncy-title span:nth-child(3) { animation-delay: 0.3s; }
.bouncy-title span:nth-child(4) { animation-delay: 0.4s; }
.bouncy-title span:nth-child(5) { animation-delay: 0.5s; }
.bouncy-title span:nth-child(6) { animation-delay: 0.6s; }
.bouncy-title span:nth-child(7) { animation-delay: 0.7s; }
.bouncy-title span:nth-child(8) { animation-delay: 0.8s; }
.bouncy-title span:nth-child(9) { animation-delay: 0.9s; }
.bouncy-title span:nth-child(10) { animation-delay: 1.0s; }

/* 4. Section Wave Dividers */
.wave-top {
    position: relative;
}
.wave-top::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V120H0Z" fill="%2387CEEB"/></svg>') no-repeat;
    background-size: cover;
    z-index: 1;
}

/* 5. Floating shapes background */
.floating-shapes-bg {
    position: relative;
    overflow: hidden;
    background: var(--color-sky-blue);
}
.shape {
    position: absolute;
    opacity: 0.5;
    z-index: 0;
    animation: float 6s infinite ease-in-out;
}
.shape-star {
    font-size: 3rem;
    color: var(--color-primary-yellow);
    text-shadow: 0 0 10px rgba(255,215,0,0.8);
}
.shape-heart {
    font-size: 2.5rem;
    color: #ff4757;
    text-shadow: 0 0 10px rgba(255,71,87,0.8);
}

/* --- Instagram Gallery --- */
.ig-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 10px;
}

.ig-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ig-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    z-index: 2;
}

.ig-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.ig-item:hover .ig-img {
    transform: scale(1.1);
}

.ig-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ig-item:hover .ig-overlay {
    opacity: 1;
}

.ig-overlay i {
    margin-right: 8px;
    color: #ff4757;
}

@media (max-width: 768px) {
    .ig-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Botón fijo de WhatsApp: solo en celular, abajo a la izquierda (León ocupa la derecha) */
.wa-float {
    display: flex;
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 30px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    z-index: 9990;
    text-decoration: none;
}
@media (max-width: 768px) {
    .wa-float { right: 16px; bottom: 16px; }
}

/* Preguntas frecuentes */
.faq-list { max-width: 820px; }
.faq-item {
    background: #fff;
    border: 3px solid var(--color-primary-yellow, #ffc107);
    border-radius: 16px;
    margin-bottom: 14px;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 700;
    font-size: 1.05rem;
    list-style: none;
    position: relative;
    padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-primary-orange, #ff9800);
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 22px 18px; line-height: 1.6; }
