:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #d4af37; /* Dorado elegante */
    --secondary-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* --- CURSOR PERSONALIZADO --- */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, background-color 0.2s ease;
    transform: translate(-50%, -50%);
}

.cursor-hover {
    transform: translate(-50%, -50%) scale(2.5);
    background-color: rgba(212, 175, 55, 0.1);
}

/* --- ANIMACIONES DE REVELACIÓN --- */
.reveal-init {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal-init.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .custom-cursor { display: none; } /* Ocultar cursor en móviles */
}

/* --- BARRA DE PROGRESO DE SCROLL --- */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 2000; /* Por encima del header */
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    box-shadow: 0 0 10px var(--accent-color);
    transition: width 0.1s ease-out;
}

header {
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 2.2rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    color: var(--accent-color); /* Ahora el logo usa tu color dorado elegante */
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.mosaic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    column-count: 4; /* 4 columnas en PC */
    column-gap: 0;   /* Sin espacio entre fotos */
    z-index: 1;
    background-color: #000;
}

.mosaic-item {
    display: block;
    width: 100%;
    height: auto;    /* Esto garantiza que NO se estiren y salgan COMPLETAS */
    opacity: 0;
    filter: grayscale(100%);
    animation: mosaic-reveal 10s infinite ease-in-out;
    break-inside: avoid; /* Evita que la foto se parta entre columnas */
}

@keyframes mosaic-reveal {
    0% {
        opacity: 0;
        transform: scale(0.95); /* Ligeramente más pequeño */
        filter: grayscale(100%);
    }
    20% {
        opacity: 0.4; /* Se revela sutilmente */
        transform: scale(1); /* Vuelve a su tamaño normal */
        filter: grayscale(0%); /* A todo color */
    }
    80% {
        opacity: 0.4; /* Mantiene el estado visible */
        transform: scale(1);
        filter: grayscale(0%);
    }
    100% {
        opacity: 0; /* Se oculta de nuevo */
        transform: scale(0.95);
        filter: grayscale(100%);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    padding: 3rem;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.hero-tag {
    display: block;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    margin-bottom: 1rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: opacity 0.6s ease; /* Permite un fundido suave al cambiar el texto */
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.section-title {
    text-align: center;
    padding: 4rem 0 2rem;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-item {
    background-color: var(--secondary-bg); /* Fondo mientras carga la imagen */
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    /* Estado inicial para la animación de scroll */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.grid-item.appear {
    opacity: 1;
    transform: translateY(0);
}

.grid-item img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    transition: filter 0.5s, transform 0.5s;
    cursor: pointer;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; /* Permite que el click pase a la imagen si es necesario */
}

.grid-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay h3 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.photo-overlay p {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.grid-item img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.about-section {
    padding: 100px 20px;
    background-color: #0f0f0f;
    text-align: center;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.contact-section {
    padding: 80px 20px;
    text-align: center;
}

.contact-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* --- SECCIÓN DE PRECIOS --- */
.pricing-section {
    padding: 60px 20px;
    background-color: #050505;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--secondary-bg);
    padding: 0;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.pricing-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-img {
    width: 100%;
    height: 280px; /* Aumentado de 180px a 280px para mayor impacto visual */
    object-fit: cover;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    transition: transform 0.6s ease; /* Hace que el zoom sea suave */
}

.pricing-card:hover .pricing-img,
.pricing-card:active .pricing-img {
    transform: scale(1.1); /* Agranda la imagen un 10% */
}

/* Ajuste para no cortar cabezas en los planes 2, 3 y 5 */
.pricing-card:nth-child(2) .pricing-img,
.pricing-card:nth-child(3) .pricing-img {
    object-position: center 30%;
}

.pricing-card:nth-child(5) .pricing-img {
    object-position: center 40%;
}

.pricing-info {
    padding: 25px 25px 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.badge {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
}

.pricing-card h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.pricing-card .price {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.old-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: #888;
    margin-right: 10px;
    font-weight: normal;
}

.pricing-card p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 25px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #eee;
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: "✓";
    color: var(--accent-color);
    margin-right: 10px;
    font-weight: bold;
}

/* --- SECCIÓN FAQ --- */
.faq-section {
    padding: 60px 20px;
    background-color: var(--bg-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background-color: var(--secondary-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    overflow: hidden;
}

summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--accent-color);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details p {
    padding: 0 20px 20px;
    font-size: 0.9rem;
    color: #ccc;
}

.btn-sm {
    padding: 10px 20px;
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-sm:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.promo-banner {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 2rem;
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.contact-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

footer {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--secondary-bg);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.copyright {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2rem;
}

.tagline {
    font-style: italic;
    color: var(--accent-color);
    margin-top: 1rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: #fff;
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px; /* Posicionado a la izquierda del botón */
    background-color: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Flechita del globo */
.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

/* Efecto de Brillo (Shimmer) */
@keyframes shimmer {
    0% { transform: translateX(-150%) skewX(-25deg); }
    15% { transform: translateX(150%) skewX(-25deg); }
    100% { transform: translateX(150%) skewX(-25deg); }
}

.btn::after, .contact-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(212, 175, 55, 0) 0%,
        rgba(212, 175, 55, 0.4) 50%,
        rgba(212, 175, 55, 0) 100%
    );
    animation: shimmer 6s infinite;
    pointer-events: none;
}

/* --- AJUSTES PARA MÓVILES Y TABLETS --- */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 1rem;
        background-color: rgba(10, 10, 10, 0.95); /* Más sólido en móvil para legibilidad */
    }

    .logo {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    nav ul li {
        margin-left: 0.8rem;
    }

    nav ul li a {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    /* Hero más estilizado en móvil */
    .hero {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        padding: 0 10px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.9rem;
        padding: 0 20px;
        line-height: 1.4;
    }

    /* Secciones con más espacio para que "respiren" */
    .pricing-section, .about-section, .contact-section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.8rem;
        padding: 1.5rem 0 1rem;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }

    /* Botones de contacto uno debajo del otro */
    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .whatsapp-tooltip {
        display: none; /* En móvil no hay 'hover', mejor ocultarlo para no ensuciar */
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    /* Rejilla de precios en 1 columna para que las fotos y textos luzcan profesionales */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .pricing-img {
        height: 220px; /* Un poco más compacta en móvil */
    }

    .pricing-info {
        padding: 20px;
    }

    .pricing-features {
        margin-bottom: 20px;
    }

    .mosaic-bg {
        column-count: 4; /* 4 columnas en móvil para ver más fotos a la vez */
    }

    .hero-content {
        padding: 1.5rem 1rem;
        margin: 0 15px;
        border-radius: 20px;
    }

    .pricing-card.featured {
        transform: scale(1); /* En móvil quitamos el scale para que no se vea raro */
    }
}