
:root {
    --purple:  #7B2FBE;
    --pink:    #E91E8C;
    --yellow:  #FFD93D;
    --teal:    #00BFA5;
    --blue:    #2979FF;
    --orange:  #FF6B35;
    --white:   #FFFFFF;
    --bg:      #F7F3FF;
    --dark:    #1A1A2E;
    --text:    #3D3D5C;
    --shadow:  0 8px 32px rgba(123,47,190,0.13);
}

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

body {
    font-family: 'Nunito', sans-serif !important;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    padding-top: 0px;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== HERO ===== */
.hero {
    background: var(--dark);
    padding: 100px 0 80px;
    position: relative; overflow: hidden;
    text-align: center;
}
.hero-blob {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.3; pointer-events: none;
}
.blob-1 { width:520px; height:520px; background:var(--purple); top:-150px; left:-100px; }
.blob-2 { width:400px; height:400px; background:var(--pink);   bottom:-80px; right:-80px; }
.blob-3 { width:280px; height:280px; background:var(--teal);   top:30%; left:50%; opacity:0.2; }
.hero-dots {
    position:absolute; inset:0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 36px 36px;
}
.hero .container { position:relative; z-index:2; }
.hero-tag {
    display:inline-flex; align-items:center; gap:8px;
    background: rgba(255,217,61,0.15);
    border: 1px solid rgba(255,217,61,0.35);
    color: var(--yellow); padding:7px 20px; border-radius:999px;
    font-size:0.82rem; font-weight:800;
    letter-spacing:1.3px; text-transform:uppercase; margin-bottom:20px;
}
.hero h1 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    color: white; line-height: 1.1; margin-bottom: 16px;
}
.hero h1 span { color: var(--yellow); }
.hero p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem; line-height: 1.7;
    max-width: 580px; margin: 0 auto;
}

/* ===== DIAGONAL ===== */
.diag {
    height: 60px; background: var(--dark);
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
    margin-bottom: -2px;
}

/* ===== SECTION LABELS / TITLES ===== */
.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white; padding: 6px 18px; border-radius: 999px;
    font-size: 0.8rem; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px;
}
.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    color: var(--dark); margin-bottom: 10px;
}
.section-title .hl { color: var(--purple); }
.section-sub {
    color: var(--text); font-size: 1rem;
    max-width: 560px; line-height: 1.65; margin-bottom: 40px;
}

/* ===== FILTROS ===== */
.gallery-section { background: var(--bg); padding: 70px 0; }

.filters {
    display: flex; justify-content: center;
    gap: 12px; margin-bottom: 40px; flex-wrap: wrap;
}
.filter-btn {
    padding: 10px 24px;
    background: white;
    border: 2px solid var(--purple);
    color: var(--purple);
    border-radius: 999px;
    font-family: 'Fredoka One', cursive;
    font-size: 0.95rem; cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white; border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(123,47,190,0.3);
}

/* ===== GRID DE GALERÍA ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-item {
    background: white;
    border-radius: 20px; overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 52px rgba(123,47,190,0.22);
    border-color: var(--purple);
}
.gallery-item.hidden { display: none; }

.gallery-img-wrap {
    position: relative; overflow: hidden;
    height: 240px;
}
.gallery-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
    transition: transform 0.6s ease;
}
.gallery-item:hover .gallery-img-wrap img { transform: scale(1.07); }

/* Overlay al hover */
.gallery-img-wrap::after {
    content: '🔍';
    position: absolute; inset: 0;
    background: rgba(123,47,190,0.55);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    opacity: 0; transition: opacity 0.35s;
}
.gallery-item:hover .gallery-img-wrap::after { opacity: 1; }

.gallery-info {
    padding: 18px 20px;
    background: white;
}
.gallery-cat {
    display: inline-block;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white; padding: 4px 14px;
    border-radius: 999px; font-size: 0.78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.gallery-info h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--dark); font-size: 1.15rem; margin-bottom: 6px;
}
.gallery-info p {
    color: var(--text); font-size: 0.88rem; line-height: 1.5;
}

/* ===== MODAL ===== */
.gallery-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.92); z-index: 2000;
    backdrop-filter: blur(10px);
    align-items: center; justify-content: center; padding: 20px;
}
.gallery-modal.open { display: flex; }

.modal-inner {
    max-width: 900px; width: 100%;
    position: relative;
    animation: modalIn .35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn {
    from { opacity:0; transform:scale(0.88) translateY(20px); }
    to   { opacity:1; transform:scale(1) translateY(0); }
}

.modal-img-wrap {
    border-radius: 20px 20px 0 0; overflow: hidden;
    max-height: 65vh;
}
.modal-img-wrap img {
    width: 100%; max-height: 65vh;
    object-fit: contain; display: block;
    background: #111;
}

.modal-info {
    background: white;
    border-radius: 0 0 20px 20px;
    padding: 22px 28px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.modal-info-text h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--dark); font-size: 1.4rem; margin-bottom: 4px;
}
.modal-info-text p { color: var(--text); font-size: 0.93rem; line-height: 1.55; }
.modal-info-cat {
    display: inline-block;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white; padding: 8px 22px;
    border-radius: 999px; font-weight: 800; font-size: 0.88rem;
    white-space: nowrap;
}

/* Controles del modal */
.modal-close {
    position: absolute; top: -50px; right: 0;
    background: rgba(255,255,255,0.15); color: white;
    width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    font-size: 1.4rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .3s; backdrop-filter: blur(8px);
}
.modal-close:hover { background: rgba(255,255,255,0.28); transform: rotate(90deg); }

.modal-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); color: white;
    width: 52px; height: 52px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    font-size: 1.6rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .3s; backdrop-filter: blur(8px);
}
.modal-nav:hover { background: rgba(255,255,255,0.28); }
.modal-prev { left: -70px; }
.modal-next { right: -70px; }

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, #2D1B69 100%);
    padding: 80px 0; text-align: center;
    position: relative; overflow: hidden;
}
.cta-section::before {
    content:''; position:absolute; inset:0;
    background:radial-gradient(ellipse at center, rgba(123,47,190,.3) 0%, transparent 70%);
}
.cta-section .container { position:relative; z-index:2; }
.cta-section h2 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2rem,4vw,2.8rem); color: white; margin-bottom: 14px;
}
.cta-section p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 28px; }
.cta-btn {
    display: inline-flex; align-items: center; gap: 12px;
    background: #25D366; color: white;
    padding: 18px 44px; border-radius: 999px;
    font-weight: 900; font-size: 1.2rem; text-decoration: none;
    box-shadow: 0 10px 32px rgba(37,211,102,.4); transition: all .3s;
    border: 3px solid rgba(255,255,255,.2);
}
.cta-btn:hover { transform: translateY(-4px) scale(1.02); }
.cta-btn i { font-size: 1.4rem; }

/* ===== ANIMACIONES ===== */
.fade-up { opacity:0; transform:translateY(28px); transition:opacity .7s ease,transform .7s ease; }
.fade-up.visible { opacity:1; transform:translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width:768px) {
    body { padding-top:0px; }
    .hero { padding:100px 0 70px; }
    .gallery-grid { grid-template-columns:repeat(auto-fill, minmax(250px,1fr)); gap:18px; }
    .modal-prev { left:-10px; }
    .modal-next { right:-10px; }
    .modal-close { top:10px; right:10px; }
    .whatsapp-float { width:56px; height:56px; font-size:1.9rem; bottom:18px; right:18px; }
}
@media (max-width:480px) {
    .gallery-grid { grid-template-columns:1fr; }
    .modal-info { flex-direction:column; }
    .modal-nav { width:42px; height:42px; font-size:1.3rem; }
}