@charset "utf-8";

:root {
    --primary: #6a1b9a;
    --primary-dark: #4a148c;
    --accent: #f39c12;
    --bg: #faf7ff;
    --footer-bg: #f5f0ff; /* Nueva variable para el color de fondo del footer/contact */
    --text: #222222;
    --muted: #555555;
    --border: #e0d5f0;
    --white: #ffffff;
    --radius-lg: 18px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}


/* NAVBAR */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding-inline: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo img {
    height: 40px;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: rgba(74, 20, 140, 0.8);
    transition: color 0.18s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    border-radius: 999px;
    background: var(--primary-dark);
    transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dark);
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.06);
    background: var(--white);
    cursor: pointer;
}

.menu-toggle span {
    height: 2px;
    width: 18px;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--primary);
}

/* HERO */

.hero {
    padding: 4rem 1.5rem 3.5rem;
    background: radial-gradient(circle at top left, #ffe082 0, transparent 55%),
                radial-gradient(circle at top right, #e1bee7 0, transparent 55%),
                #fdfbff;
}

.hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.hero-text h1 {
    margin: 0 0 1rem;
    /* Ajustes para evitar el corte y asegurar que el título envuelva en varias líneas */
    font-size: clamp(2.0rem, 4vw, 2.8rem); 
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--primary-dark);
    white-space: normal; /* **LA CLAVE** Asegura el salto de línea normal */
    /* Se eliminan las propiedades de overflow y text-overflow */
}

/* Nuevo subtítulo h2 del Hero */
.hero-subtitle {
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-text p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--muted);
}

.hero-bullets {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    padding-left: 0; /* Remueve el padding del list-style en el hero */
    list-style: none; /* Elimina los puntos por defecto */
    font-size: 0.95rem;
    color: var(--text);
}

/* Estilo para simular la viñeta con un pseudo-elemento */
.hero-bullets li::before {
    content: "•";
    color: var(--primary);
    font-weight: 800;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-image img {
    width: 100%;
    display: block;
    border-radius: 32px;
    box-shadow: 0 24px 70px rgba(60, 24, 100, 0.35);
}

/* SECTIONS GENERALES */

.section {
    padding: 3.5rem 1.5rem;
}

.section-alt {
    background: var(--footer-bg); /* Usando la variable del footer */
}

.section-header {
    max-width: 720px;
    margin: 0 auto 2rem;
    text-align: center;
}

.section-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.9rem;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--primary-dark);
}

.section-header p {
    margin: 0;
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(76, 0, 115, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 50px rgba(76, 0, 115, 0.45);
}

.btn-outline {
    background: rgba(255,255,255,0.7);
    color: var(--primary-dark);
    border-color: rgba(106, 27, 154, 0.18);
}

.btn-full {
    width: 100%;
}

/* CARDS */

.card-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15, 7, 40, 0.14);
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.3rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.card-body h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.card-body p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.link-button {
    padding: 0;
    border: none;
    background: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s ease;
}

.link-button:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* CAPACIDAD */

.capacity-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.capacity-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.6rem;
    box-shadow: 0 12px 35px rgba(22, 9, 52, 0.12);
}

.capacity-item h3 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.capacity-item ul {
    margin: 0 0 0.75rem;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.capacity-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

/* WHY */

/* Estilo original de WHY-GRID (2 columnas sin imagen) */
.why-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.why-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.6rem;
    box-shadow: 0 12px 35px rgba(22, 9, 52, 0.12);
}

.why-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.why-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

/* NUEVO ESTILO para WHY con 4 columnas y uso de .card (con imagen) */
.why-grid-image { 
    max-width: 1120px;
    margin: 0 auto;
    display: grid; 
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem; 
}

/* PROCESO */

.process-list {
    max-width: 840px;
    margin: 0 auto;
    padding-left: 1.1rem;
    display: grid;
    gap: 1.25rem;
    color: var(--muted);
}

.process-list h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.process-list p {
    margin: 0;
    font-size: 0.95rem;
}

/* COTIZACIÓN */

.quote-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.quote-text p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.quote-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.5rem;
    box-shadow: 0 14px 45px rgba(20, 10, 58, 0.2);
}

.quote-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 0.55rem 0.65rem;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}

.form-group textarea {
    min-height: 80px;
}

/* textarea grande + botón ancho completo */

.form-group--details {
    grid-column: 1 / -1;
}

.form-group--details textarea {
    min-height: 220px;
}

.form-actions {
    grid-column: 1 / -1;
}

/* CONTACTO / FOOTER */

.contact-grid {
    max-width: 1120px;
    margin: 0 auto 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.contact-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.3rem;
    box-shadow: 0 10px 30px rgba(18, 10, 45, 0.15);
}

.contact-item h3 {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.contact-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.footer-copy {
    max-width: 1120px;
    margin: 0 auto;
    padding-top: 1rem;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-copy p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

/* WHATSAPP FLOATING */

.whatsapp-floating {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-floating img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.whatsapp-floating:hover img {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}

/* MODAL */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(5,0,20,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.modal.open {
    display: flex;
}

.modal-dialog {
    background: var(--white);
    border-radius: 24px;
    padding: 1.5rem 1.6rem 1.7rem;
    max-width: 420px;
    width: calc(100% - 2.5rem);
    box-shadow: 0 22px 70px rgba(10,0,40,0.5);
    position: relative; /* Para que el botón de cerrar se posicione correctamente */
}

.modal-close {
    border: none;
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
    position: absolute;
    top: 0.8rem;
    right: 1rem;
}

.modal h3 {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.modal-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.95rem;
    display: grid;
    gap: 0.4rem;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        inset: 72px 1rem auto 1rem;
        background: rgba(255,255,255,0.98);
        border-radius: 16px;
        padding: 0.8rem;
        box-shadow: 0 18px 50px rgba(0,0,0,0.22);
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        text-align: left;
    }

    .hero-image {
        order: -1;
        display: flex;
        justify-content: center;
    }

    .hero-image img {
        max-width: 420px;
    }

    /* Regla unificada para todos los grids (incluida la nueva clase why-grid-image) */
    .card-grid,
    .capacity-grid,
    .why-grid,
    .why-grid-image, 
    .quote-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .section {
        padding-inline: 1rem;
    }

    .nav-container {
        padding-inline: 1rem;
    }

    .hero {
        padding-top: 3.25rem;
    }

    .quote-form {
        grid-template-columns: 1fr;
    }

    .form-group--details {
        grid-column: 1 / -1;
    }
}