/* --- VARIABLES & RESET (Estilo Editorial / Beige) --- */
:root {
    --bg-color: #FDFBF7;
    --text-color: #333333;
    --text-light: #666666;
    --accent-color: #A67C52; /* Terracota/Dorado */
    --white: #FFFFFF;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Mulish', sans-serif;
    --transition: all 0.4s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-color);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }

/* --- UTILIDADES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    display: block;
    margin-bottom: 15px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--text-color);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    background: transparent;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

/* --- HEADER --- */
header {
    position: sticky;
    top: 0;
    background-color: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(5px);
    padding: 20px 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.logo span { color: var(--accent-color); }

nav ul { display: flex; align-items: center; }

nav a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 15px;
    position: relative;
    color: var(--text-color);
}

nav a:hover { color: var(--accent-color); }

/* Separador | */
nav a:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -18px;
    color: var(--accent-color);
    opacity: 0.5;
    font-weight: 300;
}

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- HERO --- */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* La imagen se define inline en el HTML para cada página */
    background-size: cover !important;
    background-position: center !important;
    z-index: -1;
}

.hero-content {
    color: var(--white);
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: #FFFFFF;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    color: #FFFFFF;
}

.hero-footer {
    position: absolute;
    bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 20px;
    max-width: 900px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* --- SECCIONES COMUNES --- */
.section-padding { padding: 100px 0; }
.bg-white { background-color: var(--white); }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 { font-size: 2.5rem; }

/* --- SOBRE MÍ --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.collage-wrapper { position: relative; height: 600px; width: 100%; }

.img-large {
    position: absolute;
    width: 75%; height: 85%;
    object-fit: cover;
    top: 0; left: 0;
    z-index: 1;
    filter: sepia(10%) contrast(90%);
}

.about-text h2 { font-size: 3rem; margin-bottom: 30px; }
.about-text h2::after {
    content: '';
    display: block;
    width: 60px; height: 2px;
    background-color: var(--accent-color);
    margin-top: 20px;
}
.about-text p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
    text-align: justify;
}

/* --- PROCESO / COBERTURA (4 Columnas) --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.process-item {
    text-align: left;
    padding: 30px 20px;
    border-top: 1px solid rgba(166, 124, 82, 0.2);
    background: transparent;
    transition: var(--transition);
    position: relative;
}

.process-item:hover {
    transform: translateY(-5px);
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.process-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: rgba(166, 124, 82, 0.1);
    position: absolute;
    top: 10px; right: 20px;
    font-weight: 700;
    line-height: 1;
}

.process-icon { font-size: 1.8rem; margin-bottom: 20px; display: block; }

.process-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.process-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- ENTREGA --- */
.delivery-section {
    background-color: var(--white);
    padding: 100px 0;
    border-top: 1px solid #f0f0f0;
}

.delivery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.delivery-text h2 { font-size: 2.8rem; margin-bottom: 30px; line-height: 1.2; }
.delivery-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: justify;
}

.delivery-image {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 4px;
}
.delivery-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.delivery-image:hover img { transform: scale(1.03); }

/* --- PORTAFOLIO MASONRY --- */
.gallery-grid {
    /* Eliminamos grid y usamos columnas CSS para efecto Masonry */
    column-count: 3; 
    column-gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px; /* Espacio vertical entre items */
    break-inside: avoid; /* Evita que las imágenes se corten entre columnas */
    cursor: pointer;
}

.gallery-item img {
    width: 100%; 
    height: auto; /* Altura automática para respetar el aspect ratio */
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img { 
    transform: scale(1.03); 
    filter: brightness(0.9);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
}
.video-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}

/* --- LIGHTBOX --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border: 2px solid white;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    font-family: var(--font-sans);
    line-height: 0.5;
    transition: transform 0.3s;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: var(--accent-color);
}

/* --- PAQUETES --- */
.pricing-grid {
    display: grid;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-color);
    padding: 40px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: var(--accent-color);
}

.price-tag {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 25px;
    display: block;
}

.price-features { margin-bottom: 30px; color: var(--text-light); }
.price-features li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}
.price-features li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

/* --- AGENDA Y FORMULARIO --- */
.booking-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.booking-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 700px;
    border: 1px solid rgba(166, 124, 82, 0.15);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group { display: flex; flex-direction: column; text-align: left; }

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input, .form-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fafafa;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #8c6642;
    transform: translateY(-2px);
}

/* --- TESTIMONIALES --- */
.testimonials {
    background-color: var(--accent-color);
    color: var(--white);
    overflow: hidden;
    position: relative;
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-item {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
    padding: 20px;
}
.testimonial-item.active { opacity: 1; pointer-events: all; }

.quote-icon {
    font-size: 4rem;
    opacity: 0.3;
    font-family: var(--font-serif);
    line-height: 1;
    margin-bottom: 20px;
    display: block;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.5;
}

.client-name {
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}
.client-location {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
}

/* --- FAQ --- */
.faq { background-color: var(--white); }
.faq-grid { max-width: 900px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding-bottom: 20px;
}
.faq-item:last-child { border-bottom: none; }

details > summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s;
}
details[open] > summary::after { transform: rotate(45deg); }

details > p {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    padding-right: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- FOOTER --- */
footer {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 80px 0;
    text-align: center;
}

.footer-content h2 { color: var(--white); font-size: 2.5rem; margin-bottom: 20px; }
.contact-info { font-size: 1.2rem; margin-bottom: 30px; color: #aaa; }
.socials a {
    margin: 0 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.copyright {
    margin-top: 50px;
    font-size: 0.8rem;
    color: #555;
    border-top: 1px solid #444;
    padding-top: 20px;
    display: inline-block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .gallery-grid { column-count: 2; }
    .process-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 900px) {
    .hero h1 { font-size: 2.5rem; }
    .about-grid, .pricing-grid, .delivery-grid, .form-grid { grid-template-columns: 1fr !important; }
    .collage-wrapper { height: 400px; margin-bottom: 40px; }
    .hero-footer { flex-direction: row; font-size: 0.55rem; gap: 5px; width: 95%; }
    .hero-footer span { margin: 0 2px; }
    nav a { margin: 0 5px; font-size: 0.7rem; }
    nav a:not(:last-child)::after { right: -8px; }
    .delivery-image { height: 300px; order: -1; }
    .testimonial-text { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .gallery-grid { column-count: 1; }
    nav {
        display: none;
        position: absolute;
        top: 70px; left: 0; width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid #ddd;
    }
    nav.active { display: flex; }
    nav a { margin: 10px 0; }
    nav a:not(:last-child)::after { content: ''; }
    .menu-toggle { display: block; }
    .hero-footer { display: none; }
}

@media (max-width: 600px) {
    .process-grid { grid-template-columns: 1fr !important; }
    .booking-card { padding: 25px; }
}


/* --- SECCIÓN FILMES / VIDEOS --- */

/* Contenedor para hacer el iframe de YouTube responsivo (mantiene aspecto 16:9) */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* Proporción 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px; /* Un pequeño borde redondeado para que encaje con el diseño */
    background-color: #f0f0f0; /* Fondo mientras carga */
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Cuadrícula para los 3 videos inferiores */
.video-grid-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: -10px; /* Ajuste visual */
}

/* Ajuste para móviles: los videos pequeños se ponen uno debajo de otro */
@media (max-width: 768px) {
    .video-grid-small {
        grid-template-columns: 1fr;
    }
}