/* ================= RESET & BASE ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 
    color: white; 
    background-color: #000; 
    -webkit-font-smoothing: antialiased; 
}
a { text-decoration: none; color: white; transition: 0.3s; }
ul { list-style: none; }

/* ================= HEADER ================= */
.site-header {
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.logo { font-weight: 900; font-size: 1.2rem; letter-spacing: 1px; text-transform: uppercase; }
.desktop-nav { display: flex; gap: 40px; }
.desktop-nav a { font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; opacity: 0.7; }
.desktop-nav a:hover, .desktop-nav a.active { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

.hamburger-icon { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1001; }
.hamburger-icon span { display: block; width: 30px; height: 3px; background: white; }

.mobile-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: black; z-index: 999;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px;
    transform: translateY(-100%); transition: 0.4s ease-in-out;
}
.mobile-menu.active { transform: translateY(0); }
.mobile-menu a { font-size: 2rem; font-weight: 900; }

/* ================ TADA ================= */
.hero-screen {
    height: 100vh; width: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('portada-pc.jpg');
    background-size: cover; background-position: center;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 50px;
}
.hero-content { display: flex; justify-content: space-between; align-items: flex-end; width: 100%; padding-bottom: 20px; }
.cta-box p { font-size: 0.9rem; font-weight: 800; margin-bottom: 20px; letter-spacing: 1px; opacity: 0.9; }
.btn-outline { background: white; color: black; padding: 15px 30px; font-size: 0.9rem; font-weight: 800; text-transform: uppercase; display: inline-block; }
.btn-outline:hover { background: #e0e0e0; }
.title-box { text-align: right; }
.title-box h1 { font-size: 6rem; font-weight: 800; line-height: 0.85; letter-spacing: -3px; text-transform: uppercase; margin-right: -5px; }
.title-box h3 { font-size: 1.2rem; margin-top: 20px; font-weight: 400; letter-spacing: 4px; }

/* ================= LAYOUT GENERAL ================= */
.page-container { 
    padding: 0 50px 50px 50px; 
    max-width: 1200px; 
    margin: 0 auto; 
    min-height: 100vh; 
    padding-top: 100px; 
    display: flex;
    flex-direction: column;
}
.page-title { font-size: 3.5rem; font-weight: 900; margin-bottom: 30px; text-transform: uppercase; letter-spacing: -2px; text-align: center; }

/* ================= SECCIONES (Servicios, About, Contacto) ================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.service-card { border: 1px solid #333; padding: 40px; transition: 0.3s; }
.service-card:hover { border-color: white; background: #111; }
.service-card h3 { font-size: 2rem; margin-bottom: 20px; font-weight: 800; }
.service-card p { font-size: 1rem; color: #ccc; line-height: 1.6; margin-bottom: 30px; }
.service-link { font-weight: 900; border-bottom: 1px solid white; padding-bottom: 5px; }

.about-layout { display: flex; gap: 80px; align-items: center; }
.about-img { flex: 1; }
.about-img img { width: 100%; max-height: 600px; object-fit: cover; filter: grayscale(100%); border: 1px solid #333; }
.about-text { flex: 1; }
.about-text h2 { font-size: 3rem; margin-bottom: 30px; font-weight: 800; }
.about-text p { font-size: 1.1rem; line-height: 1.6; color: #ccc; margin-bottom: 20px; }

.contact-layout { display: flex; flex-direction: column; gap: 60px; text-align: center; align-items: center; margin-top: 40px; }
.contact-item h3 { font-size: 0.9rem; font-weight: 800; color: #666; margin-bottom: 15px; letter-spacing: 2px; }
.big-link { font-size: 2.5rem; font-weight: 900; text-transform: uppercase; border-bottom: 2px solid transparent; }
.big-link:hover { border-bottom-color: white; }
.contact-item p { font-size: 1.5rem; line-height: 1.5; font-weight: 700; }

/* ================================================================= */
/* !!! PORTAFOLIO MODIFICADO (ASPECT RATIO ORIGINAL) !!! */
/* ================================================================= */

/* ================================================================= */
/* !!! PORTAFOLIO: GRID INTELIGENTE !!! */
/* ================================================================= */

.masonry-grid {
    display: grid;
    /* Crea columnas flexibles de mínimo 250px */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* 'dense' es magia: intenta rellenar huecos vacíos reordenando si es necesario */
    grid-auto-flow: dense; 
    gap: 15px;
}

.grid-item {
    background: #111;
    overflow: hidden;
    position: relative;
    /* Por defecto, las fotos son cuadradas o verticales según su contenido, 
       pero aquí forzamos que ocupen todo el espacio de su celda */
    width: 100%;
    height: 100%; 
    min-height: 400px; /* Altura base para las verticales */
}

/* CLASE PARA FOTOS HORIZONTALES (Ocupan 2 espacios) */
.grid-item.wide {
    grid-column: span 2; /* Se estira a lo ancho 2 columnas */
    aspect-ratio: 16/9;  /* Mantiene proporción de cine (opcional) */
}

/* CLASE PARA FOTOS GIGANTES (Ocupan 2x2) */
.grid-item.big {
    grid-column: span 2;
    grid-row: span 2;
}

/* CLASE PARA FOTOS VERTICALES ALTAS (Ocupan 2 filas hacia abajo) */
.grid-item.tall {
    grid-row: span 2;
}

.grid-item.ultrawide {
    grid-column: span 4; /* Ocupa 3 columnas */
    aspect-ratio: 4/3;   /* Proporción ultra ancha */
}

/* IMAGEN */
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* CLAVE: Recorta la imagen para llenar la caja sin estirarse */
    transition: 0.5s;
    
}

.grid-item:hover img {
    filter: grayscale(0%); /* Color al pasar el mouse */
}

/* Ajuste Móvil: En pantallas pequeñas, todo es de 1 columna */
@media (max-width: 768px) {
    .grid-item.wide, .grid-item.big { 
        grid-column: span 1 !important; /* Anula el efecto ancho en celular */
        aspect-ratio: auto !important;
    }
}
/* NOTA: Con este sistema de columnas, las clases .wide, .tall y .big 
   del HTML ya no son necesarias para el layout, el navegador acomoda 
   las fotos según su tamaño real. */

/* ================= AGENDAR ================= */
.booking-wrapper { display: flex; gap: 60px; margin-top: 0; align-items: flex-start; flex: 1; }
.booking-col { flex: 1; }
.input-group { margin-bottom: 40px; }
.input-group label { display: block; font-size: 0.8rem; font-weight: 800; color: #666; margin-bottom: 15px; letter-spacing: 1px; }

input, select { 
    width: 100%; background: transparent; border: none; 
    border-bottom: 2px solid white; color: white; 
    font-size: 1.5rem; padding: 10px 0; font-weight: 700; 
    outline: none; border-radius: 0; appearance: none;
}
select option { background: rgb(255, 255, 255); color: rgb(0, 0, 0); }

.btn-full { 
    width: 100%; 
    background: white; 
    color: black; /* <--- CAMBIO AQUÍ: Texto negro */
    border: none; 
    padding: 25px; 
    font-size: 1.2rem; 
    font-weight: 900; 
    cursor: pointer; 
    margin-top: auto; 
    margin-bottom: 20px; 
    letter-spacing: 2px; 
}

.btn-full:hover { 
    background: #ccc; 
}

/* ESFERAS DE HORA */
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.time-slot {
    display: flex; justify-content: center; align-items: center;
    height: 50px; border: 1px solid #333; border-radius: 50px;
    color: white; font-weight: 700; cursor: pointer; transition: 0.2s;
}
.time-slot:hover { border-color: white; background: #111; }
.time-slot.selected { background: white !important; color: black !important; border-color: white !important; font-weight: 900 !important;  }

/* ================= CALENDARIO FIXED ================= */
.flatpickr-calendar {
    width: 100% !important; max-width: 450px !important; background: transparent !important;
    box-shadow: none !important; border: none !important; margin: 0 auto !important;
    height: auto !important; display: block !important; visibility: visible !important;
    overflow: visible !important; padding: 0 !important; padding-bottom: 20px !important;
}
.flatpickr-months { display: flex; justify-content: center; align-items: center; margin-bottom: 20px; position: relative; padding: 0; }
.flatpickr-month { height: auto !important; overflow: visible !important; }
.flatpickr-current-month { font-size: 2rem !important; font-weight: 800 !important; color: white !important; padding: 0 !important; width: 100% !important; display: flex; justify-content: center; position: static !important; }
.flatpickr-current-month input.cur-year { font-weight: 800 !important; color: white !important; }
.numInputWrapper { display: none !important; } 
.flatpickr-prev-month, .flatpickr-next-month { position: absolute !important; top: 50% !important; transform: translateY(-50%) !important; padding: 0 10px !important; height: 30px !important; width: 30px !important; z-index: 10; }
.flatpickr-prev-month svg, .flatpickr-next-month svg { fill: white !important; width: 14px; height: 14px; }
.flatpickr-weekdays { display: grid !important; grid-template-columns: repeat(7, 1fr) !important; width: 100% !important; margin-bottom: 15px !important; text-align: center; }
.flatpickr-weekdaycontainer { display: contents !important; }
span.flatpickr-weekday { display: flex !important; justify-content: center !important; align-items: center !important; color: white !important; font-weight: 800 !important; font-size: 0.85rem !important; background: transparent !important; text-transform: uppercase; }
.flatpickr-innerContainer, .flatpickr-rContainer, .flatpickr-days { width: 100% !important; display: block !important; overflow: visible !important; padding: 0 !important; }
.dayContainer { display: grid !important; grid-template-columns: repeat(7, 1fr) !important; width: 100% !important; min-width: 100% !important; padding: 0 !important; justify-items: center !important; }
.flatpickr-day { position: relative !important; width: 40px !important; height: 50px !important; margin: 5px 0 !important; border-radius: 50% !important; border: 1px solid #333 !important; background: transparent !important; color: white !important; font-weight: 700 !important; max-width: none !important; flex-basis: auto !important; display: flex !important; justify-content: center !important; align-items: center !important; }
.flatpickr-day.selected { background: white !important; color: black !important; border-color: white !important; font-weight: 900 !important; }
.flatpickr-day:hover { border-color: white !important; background: #111 !important; }
.flatpickr-day.flatpickr-disabled { color: white !important; opacity: 0.3 !important; border-color: transparent !important; text-decoration: line-through; cursor: default; }
.flatpickr-day:nth-child(7n) { color: white !important; }
.flatpickr-time { display: none !important; }

/* ================= FOOTER ================= */
footer { padding: 50px; text-align: center; border-top: 1px solid #222; margin-top: 50px; }
footer a { font-weight: 900; font-size: 1.2rem; }
footer p { color: #666; font-size: 0.8rem; margin-top: 20px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .site-header { padding: 20px; }
    .desktop-nav { display: none; }
    .hamburger-icon { display: flex; }
    .hero-content { flex-direction: column-reverse; align-items: center; text-align: center; gap: 40px; }
    .title-box h1 { font-size: 4rem; margin-right: 0; }
    .booking-wrapper { flex-direction: column; gap: 40px; }
    .grid-item.wide, .grid-item.big { grid-column: span 1; }
    .page-title { font-size: 3rem; }
    .flatpickr-day { height: 40px !important; width: 35px !important; }
    .time-grid { grid-template-columns: repeat(3, 1fr); }
    /* Ajuste Portafolio Móvil */
    .masonry-grid { column-count: 2; }
}

@media (max-width: 480px) {
    .masonry-grid { column-count: 1; }
}
/* ... (Todo tu CSS anterior) ... */

/* ================= CONTACTO (NUEVO LAYOUT SPLIT) ================= */

.contact-split {
    display: flex;
    gap: 80px;
    align-items: center; /* Centrado verticalmente */
    min-height: 60vh;
}

.contact-info-col {
    flex: 1;
}

/* La imagen ocupa el otro 50% */
.contact-image-col {
    flex: 1;
    height: 600px; /* Altura fija para uniformidad */
    border: 1px solid #333;
    overflow: hidden;
}

.contact-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para llenar el espacio sin deformar */
    filter: grayscale(0.2s);
    transition: 0.5s;
}

.contact-image-col:hover img {
    filter: grayscale(0%);
}

/* Grid interna para los datos (2 columnas de datos si hay espacio) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Una columna por defecto, limpio */
    gap: 40px;
    margin-bottom: 60px;
}

.contact-block h3 {
    font-size: 0.8rem;
    font-weight: 800;
    color: #666;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.text-link {
    font-size: 1.5rem; /* Letra grande pero no gigante */
    font-weight: 700;
    color: white;
    border-bottom: 1px solid transparent;
}

.text-link:hover {
    border-bottom-color: white;
}

.text-plain {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

/* Botón alineado a la izquierda */
.cta-box-left p {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
    font-weight: 700;
}

/* RESPONSIVE PARA CONTACTO */
@media (max-width: 768px) {
    .contact-split {
        flex-direction: column-reverse; /* Imagen arriba, texto abajo en móvil */
        gap: 40px;
    }
    
    .contact-image-col {
        width: 100%;
        height: 400px;
    }
    
    .page-title {
        text-align: center !important;
    }
    
    .contact-info-col {
        text-align: center;
    }
}

/* ========================================= */
/* !!! AGREGAR AL FINAL DE STYLES.CSS !!! */
/* ========================================= */

/* Subtítulos de sección */
.section-subtitle {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    letter-spacing: 2px;
    color: #fff;
    border-left: 3px solid #fff;
    padding-left: 15px;
}

/* Tarjetas de Precios (Modificación Dark) */
.pricing-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
}

.pricing-card h3 {
    margin-bottom: 5px; /* Reducir margen para el subtitulo */
}

.plan-desc {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
}

.price {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 30px;
    line-height: 1;
}

.price .currency {
    font-size: 1rem;
    font-weight: 700;
    vertical-align: top;
    color: #666;
}

/* Lista de características */
.service-list {
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-list li {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-weight: 300;
}

.service-list li::before {
    content: "•";
    color: white;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-list strong {
    color: white;
    font-weight: 700;
}

/* Borde destacado para el plan de en medio (opcional) */
.featured-border {
    border-color: #666;
    background: linear-gradient(to bottom right, #111, #000);
}

/* --- SECCIÓN EVENTOS (WIDE CARD) --- */
.new-badge {
    background: white;
    color: black;
    font-size: 0.6rem;
    padding: 3px 8px;
    vertical-align: middle;
    margin-left: 10px;
    border-radius: 2px;
}

.event-card-wide {
    border: 1px solid #333;
    padding: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    background: #050505; /* Un negro ligeramente diferente para separar */
}

.event-info { flex: 3; min-width: 300px; }
.event-features { flex: 2; min-width: 250px; border-left: 1px solid #333; padding-left: 40px; }

.event-desc {
    font-size: 1.1rem;
    color: #999;
    margin-bottom: 40px;
    line-height: 1.6;
}

.event-pricing-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.price-small {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.price-note {
    font-size: 0.8rem;
    color: #666;
    font-weight: 700;
}

.event-features h4 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: 800;
}

/* FAQ Mini */
.faq-mini-grid {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    border-top: 1px solid #222;
    padding-top: 40px;
}

.faq-mini-grid h4 { font-size: 0.9rem; font-weight: 800; color: white; margin-bottom: 10px; }
.faq-mini-grid p { font-size: 0.9rem; color: #666; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .event-card-wide { flex-direction: column; gap: 30px; padding: 30px; }
    .event-features { border-left: none; padding-left: 0; border-top: 1px solid #333; padding-top: 30px; }
    .price { font-size: 2.5rem; }
}