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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 100%);
    color: #2c2c2c;
    line-height: 1.6;
}
/* titulo */
header {
    background: rgba(232, 245, 244, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid #e7e5e4;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #57534e;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.3rem;
    color: #78716c;
    font-weight: 600;
    letter-spacing: 1px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.photo-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-number {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #57534e;
    letter-spacing: 0.5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 2rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
}

.modal-text {
    padding: 2rem;
}

.modal-text h3 {
    font-size: 1.5rem;
    color: #57534e;
    margin-bottom: 1rem;
    font-weight: 400;
}

.modal-text p {
    font-size: 1rem;
    color: #78716c;
    line-height: 1.8;
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: #57534e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.close-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .modal {
        padding: 1rem;
    }

    .modal-text {
        padding: 1.5rem;
    }

    .close-btn {
        top: 1rem;
        right: 1rem;
    }
}

footer {
    text-align: center;
    padding: 3rem 2rem;
    color: #78716c;
    font-size: 0.9rem;
}
#changeCookies {
    cursor: pointer;
}

/* Contador de visitas */
.visit-counter {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: #7f1d1d;
    background: rgba(255, 255, 255, 0.6);
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
}


/* ================= HOW TO USE ================= */

.how-to-use {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 3rem 2rem;
    text-align: center;
}

.how-to-use h2 {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
    color: #312e81;
}

.how-subtitle {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 3rem;
}

/* GRID */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

/* CARD */
.step-card {
    background: #ffffff;
    padding: 2.2rem 1.8rem;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

/* NUMBER */
.step-number {
    position: absolute;
    top: -14px;
    left: 20px;
    background: linear-gradient(135deg,#6366f1,#22d3ee);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* TEXT */
.step-card h3 {
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    color: #1e293b;
}

.step-card p {
    font-size: .95rem;
    color: #475569;
    line-height: 1.6;
}

/* FINAL CARD */
.step-card.highlight {
    background: linear-gradient(135deg,#ecfeff,#f0f9ff);
    border: 2px solid #67e8f9;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .how-to-use h2 {
        font-size: 2rem;
    }
}



/* ================= PUBLICIDAD ================= */

.ad-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.ad-modal.active {
    display: flex;
}

.ad-content {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.ad-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #312e81;
}

#adCountdown {
    margin: 1rem 0;
    color: #555;
}

#continueBtn {
    padding: 12px 24px;
    border-radius: 30px;
    border: none;
    background: #6366f1;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.5;
}

#continueBtn:enabled {
    opacity: 1;
}



/* que es free prompts */
.about-box {
    max-width: 850px;
    margin: 3rem auto 4rem;
    padding: 2.2rem 2rem;
    background: #f2e8e8;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.about-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #312e81;
}

.about-box p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

.seo-text {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
}

.seo-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #312e81;
}

.seo-text p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
}

/* ================= INFO SECTION (AMARILLO PASTEL) ================= */

.info-section {
    max-width: 850px;
    margin: 4rem auto 5rem;
    padding: 2.6rem 2.4rem;
    background: linear-gradient(
        135deg,
        #fff7cc,
        #fffbe6
    );
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 14px 35px rgba(0,0,0,0.08);
    border: 1px solid #fde68a;
}

.info-section h2 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
    color: #78350f;
}

.info-section p {
    font-size: 1.05rem;
    font-weight: 500;
    color: #92400e;
    line-height: 1.75;
    max-width: 900px;
    margin: 0.8rem auto 0;
}

@media (max-width: 640px) {
    .info-section {
        padding: 1.8rem 1.4rem;
        margin: 3rem 1rem 4rem;
        border-radius: 18px;
    }

    .info-section h2 {
        font-size: 1.7rem;
    }

    .info-section p {
        font-size: 0.98rem;
    }
}

.info-section {
    opacity: 0;
    transform: translateY(18px);
    animation: infoFadeUp 0.8s ease-out forwards;
}

@keyframes infoFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photo-description {
    display: none;
}

.see-more {
    text-align: center;
    margin: 3rem 0;
  }
  
  .see-more a {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    background: #6366f1;
    color: white;
    font-weight: 600;
    text-decoration: none;
  }
  
  .see-more a:hover {
    opacity: 0.9;
  }
  
  /* ================= HEADER MEJORADO ================= */

/* Animación suave al cargar */
header {
    animation: headerFade 0.9s ease-out both;
}

@keyframes headerFade {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Línea decorativa */
.hero-line {
    width: 90px;
    height: 4px;
    margin: 0.8rem auto 1rem;
    border-radius: 4px;
    background: linear-gradient(90deg, #6366f1, #22d3ee);
}

/* Glow pastel sutil en el título */
header h1 {
    text-shadow: 0 4px 18px rgba(99, 102, 241, 0.25);
}

/* Ajuste móvil */
@media (max-width: 640px) {
    .hero-line {
        width: 60px;
    }
}

/* ===== Línea animada (muy sutil) ===== */
.hero-line {
    width: 90px;
    height: 4px;
    margin: 0.8rem auto 1rem;
    border-radius: 4px;
    background: linear-gradient(90deg, #6366f1, #22d3ee);
    animation: linePulse 4s ease-in-out infinite;
}

@keyframes linePulse {
    0%, 100% {
        transform: scaleX(1);
        opacity: 1;
    }
    50% {
        transform: scaleX(1.12);
        opacity: 0.85;
    }
}

/* ===== Micro-hover elegante del título ===== */
header h1 {
    transition: transform 0.25s ease, text-shadow 0.25s ease;
}

header h1:hover {
    transform: translateY(-2px);
    text-shadow: 0 6px 22px rgba(99, 102, 241, 0.35);
}

/* Móvil: desactivamos hover */
@media (max-width: 640px) {
    header h1:hover {
        transform: none;
        text-shadow: none;
    }
}

/* ===== CAJA TÍTULO GALERÍA ===== */

.gallery-title-box {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 2.2rem 2rem;
    background: linear-gradient(135deg, #fef3c7, #fff7ed);
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 14px 35px rgba(0,0,0,0.08);
    border: 1px solid #fde68a;
}

.gallery-title-box h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #92400e;
    margin-bottom: 0.8rem;
}

.gallery-title-box p {
    font-size: 1.05rem;
    color: #78350f;
    line-height: 1.7;
}

/* Animación suave */
.gallery-title-box {
    opacity: 0;
    transform: translateY(18px);
    animation: galleryTitleFade 0.8s ease-out forwards;
}

@keyframes galleryTitleFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .gallery-title-box {
        padding: 1.6rem 1.4rem;
        margin-bottom: 2rem;
    }

    .gallery-title-box h2 {
        font-size: 1.7rem;
    }

    .gallery-title-box p {
        font-size: 0.95rem;
    }
}
