/* --- Paleta de Colores - Azul Eléctrico y Oscuro --- */
:root {
    --color-background: #121212; /* Negro profundo */
    --color-surface: rgba(30, 30, 30, 0.95); /* Gris oscuro semi-transparente */
    --color-text: #E0E0E0; /* Texto claro */
    --color-primary: #4D4DFF; /* Azul eléctrico vibrante */
    --color-primary-dark: #3A3AFF; /* Azul más oscuro para hover */
    --color-white: #FFFFFF;
    --font-family: 'Nunito', sans-serif; /* Nueva tipografía */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text);
    margin: 0;
    line-height: 1.7;
    font-weight: 300; /* Peso Light para el cuerpo del texto */
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* --- Canvas de Animación Global --- */
#page-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-family);
    font-weight: 800;
    color: var(--color-white);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px; /* Aumentado para mayor separación */
}

section {
    padding: 80px 0;
    background-color: var(--color-surface);
    position: relative;
}

.hero {
    background-color: transparent;
}

/* --- Botón Principal (CTA) --- */
.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(77, 77, 255, 0.25);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(77, 77, 255, 0.4); /* Sombra más pronunciada */
}

/* --- Encabezado (Hero) --- */
.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.hero-content {
    padding: 20px;
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 800px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 550px;
    margin: 0 auto 40px auto;
    font-weight: 300;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    animation: bounce 2.5s infinite ease-in-out;
}

.scroll-down-arrow:hover {
    background-color: rgba(77, 77, 255, 0.2);
    border-color: var(--color-primary);
    animation-play-state: paused;
}

.scroll-down-arrow svg {
    width: 32px;
    height: 32px;
    fill: var(--color-white);
}

/* --- Galería de Ejemplos - CARRUSEL MODERNO --- */
#gallery .container {
    max-width: 100%; /* Permite que el carrusel use el ancho completo */
    padding: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px; /* Separación entre tarjetas */
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 75%; /* Cada slide ocupa el 75% del contenedor en móvil */
    min-width: 0;
    opacity: 0.5;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-slide.is-selected {
    opacity: 1;
    transform: scale(1);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: rgba(77, 77, 255, 0.8);
}

.carousel-button.prev { left: 5px; }
.carousel-button.next { right: 5px; }

.gallery-item {
    background-color: rgba(0,0,0,0.3);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    position: relative; /* Necesario para posicionar el subtítulo */
}

.gallery-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.gallery-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    margin: 0;
    font-weight: 600;
    color: var(--color-white);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-slide.is-selected .gallery-item p {
    opacity: 1;
    transform: translateY(0);
}


/* --- Sección "Cómo Funciona" --- */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.step {
    max-width: 320px;
    margin: 0 auto;
}

.step-icon {
    width: 70px;
    height: 70px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: var(--color-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transición para microinteracción */
}

.step-icon:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 0 25px rgba(77, 77, 255, 0.5); /* Resplandor */
}

.step-icon svg {
    width: 32px;
    height: 32px;
}

.step h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* --- Sección de Precios --- */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: stretch;
}

.price-card {
    background-color: rgba(18,18,18,0.7);
    border: 2px solid #333;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: scale(1.03);
    border-color: var(--color-primary);
}

.price-card.recommended {
    border-color: var(--color-primary);
    transform: scale(1.05);
    position: relative;
    animation: pulse-shadow 3s infinite ease-in-out;
}

.price-card.recommended::before {
    content: 'Recomendado';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.price-card h3 {
    font-size: 1.5rem;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.price-card .price {
    font-size: 3rem;
    font-weight: 800;
    margin: 15px 0;
    color: var(--color-primary);
}

.price-card p {
    margin-bottom: 30px;
    flex-grow: 1;
    font-weight: 300;
}

/* --- NUEVA SECCIÓN "SOBRE NOSOTROS" --- */
#about-us {
    background-color: transparent;
}

.about-us-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.about-us-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-primary);
    box-shadow: 0 0 20px rgba(77, 77, 255, 0.4);
    cursor: pointer; /* Añadido para el easter egg */
    transition: transform 0.5s ease; /* Transición para el easter egg */
}

.about-us-photo img.spin {
    transform: rotate(360deg);
}

.about-us-text {
    max-width: 600px;
    text-align: center;
}

.about-us-text h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.about-us-text p {
    font-size: 1.1rem;
    color: var(--color-text);
    font-weight: 300;
}

/* --- FORMULARIO DE CONTACTO OPTIMIZADO --- */
#contact {
    text-align: center;
    background-color: var(--color-surface);
}

#contact h2 {
    margin-bottom: 15px;
}

.contact-subtitle {
    margin-bottom: 40px;
    color: var(--color-text);
    font-weight: 300;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: var(--border-radius);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #888;
    font-weight: 300;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(77, 77, 255, 0.3);
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #555;
    color: #ccc;
}

.btn-secondary:hover {
    background-color: #2a2a2a;
    border-color: var(--color-white);
    color: var(--color-white);
}

.whatsapp-contact {
    margin-top: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.whatsapp-contact strong {
    font-weight: 600;
    color: var(--color-primary);
}

/* --- Footer --- */
.site-footer {
    background-color: #1a1a1a;
    padding: 30px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-column {
    flex: 1;
    min-width: 250px; /* Evita que las columnas se aplasten demasiado */
}

.footer-logo-container {
    display: flex;
    justify-content: flex-start;
}

.footer-logo {
    width: 40px;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.footer-center {
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
}

.social-icons a {
    color: #888;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-white);
    transform: translateY(-5px) scale(1.1);
}

.social-icons svg {
    width: 28px;
    height: 28px;
}

.copyright-text {
    color: #888;
    font-size: 0.9rem;
    font-weight: 300;
    margin: 0;
}

.payment-methods {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.payment-icon {
    height: 24px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    filter: grayscale(1);
    opacity: 0.7;
}

.payment-icon:hover {
    transform: scale(1.1) translateY(-3px);
    filter: grayscale(0);
    opacity: 1;
}


/* --- Estilos para el Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    animation: zoomIn 0.4s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ccc;
}

body.modal-open {
    overflow: hidden;
}

/* --- Animación Fade-in --- */
.fade-in { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; 
}

.fade-in.visible { 
    opacity: 1; 
    transform: translateY(0); 
}


/* --- Keyframes para las animaciones --- */
@keyframes pulse-shadow {
    0% { box-shadow: 0 0 20px rgba(77, 77, 255, 0.2); }
    50% { box-shadow: 0 0 40px rgba(77, 77, 255, 0.4); }
    100% { box-shadow: 0 0 20px rgba(77, 77, 255, 0.2); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-logo-container,
    .payment-methods {
        justify-content: center;
        width: 100%;
    }
    .footer-column {
        min-width: 100%;
    }
}

@media (min-width: 768px) {
    h2 { font-size: 2.8rem; }
    .hero-content h1 { font-size: 4rem; }
    .carousel-slide { flex-basis: 45%; }
    .steps-container { flex-direction: row; justify-content: space-around; align-items: flex-start; }
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
    .form-row { flex-direction: row; }
    .about-us-content { flex-direction: row; text-align: left; }
}

@media (min-width: 1024px) {
    .hero-content h1 { font-size: 4.5rem; }
    .carousel-slide { flex-basis: 30%; }
}