/* =========================================
   VARIABLES
   ========================================= */
   :root {
    /* Paleta Principal (Elegancia Corporativa Francesa) */
    --color-primary: #0F2027;       /* Negro azulado */
    --color-primary-light: #203A43;
    --color-secondary: #D4AF37;     /* Dorado metálico (confianza/riqueza) */
    --color-secondary-hover: #B5952F;
    
    /* Superficies y Textos */
    --color-bg: #FFFFFF;
    --color-bg-light: #F8F9FA;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #E0E0E0;
    
    /* Tipografía */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Utilidades */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   RESET Y BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Para fixed header */
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* =========================================
   SISTEMA DE GRID / LAYOUT
   ========================================= */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--color-bg-light); }
.text-center { text-align: center; }

/* =========================================
   MANEJO DE VISTAS (SPA)
   ========================================= */
.app-container {
    min-height: calc(100vh - 400px); /* Asegura que el footer baje */
}

.view {
    display: none;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

.view--active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   COMPONENTES
   ========================================= */
/* Botones */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    text-align: center;
}

.btn--primary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.btn--primary:hover {
    background-color: var(--color-secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn--large {
    padding: 16px 36px;
    font-size: 1.1rem;
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.btn--large:hover {
    background-color: var(--color-primary-light);
    color: var(--color-bg);
}

.btn--outline {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-bg);
}

.btn--full { width: 100%; }

/* Encabezados de Sección */
.section-header { margin-bottom: 3rem; }
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Etiquetas */
.badge {
    display: inline-block;
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--color-secondary-hover);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* =========================================
   HEADER & NAV
   ========================================= */
.header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header--scrolled {
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__logo i { color: var(--color-secondary); }

.header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__menu {
    display: flex;
    gap: 1.5rem;
    font-weight: 500;
}

.header__menu a:hover { color: var(--color-secondary-hover); }

.header__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.hero__description {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.hero__note {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 500;
}
.hero__note i { color: #28a745; margin-right: 5px; }

.hero__image-wrapper { position: relative; }
.hero__image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* =========================================
   PARTNERS / ALIANZAS
   ========================================= */
.partners {
    padding: 40px 0;
    border-bottom: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
}
.partners__title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-weight: 600;
}
.partners__grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    color: #A0AEC0;
    font-size: 2.5rem;
}
.partners__grid i { transition: var(--transition); }
.partners__grid i:hover { color: var(--color-primary); }

/* =========================================
   BENEFITS CARDS
   ========================================= */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--color-bg);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.card__icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.card__icon {
    font-size: 2rem;
    color: var(--color-secondary-hover);
}

.card__title {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.card__text { color: var(--color-text-light); }

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    font-family: var(--font-heading);
    color: rgba(212, 175, 55, 0.2);
    line-height: 1;
}

.testimonial-card__text {
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-card__author {
    display: flex;
    flex-direction: column;
}

.testimonial-card__author strong { color: var(--color-primary); }
.testimonial-card__author span { font-size: 0.85rem; color: var(--color-text-light); }

/* =========================================
   FORMULARIO DE COTIZACIÓN
   ========================================= */
.quote__wrapper {
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: var(--shadow-md);
}

.quote__info {
    padding: 4rem;
    color: var(--color-bg);
    background: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=800&q=80') center/cover;
    position: relative;
}

.quote__info::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 32, 39, 0.9);
}

.quote__info > * { position: relative; z-index: 1; }
.quote__info h2 { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 1rem; color: var(--color-secondary); }
.quote__info p { margin-bottom: 2rem; color: #E2E8F0; }
.quote__features li { margin-bottom: 1rem; font-weight: 500; }
.quote__features i { color: var(--color-secondary); margin-right: 10px; }

.form {
    padding: 4rem;
    background: var(--color-bg);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form__group { margin-bottom: 1.5rem; }
.form__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.form__input, .form__select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form__input:focus, .form__select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form__group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form__checkbox { margin-top: 5px; cursor: pointer; }
.form__group--checkbox label { font-size: 0.85rem; color: var(--color-text-light); }
.form__link { color: var(--color-secondary-hover); font-weight: 600; text-decoration: underline; cursor: pointer; }

/* =========================================
   ACCORDION (FAQ)
   ========================================= */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion__item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion__header {
    width: 100%;
    text-align: left;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion__header i { transition: transform 0.3s ease; color: var(--color-secondary-hover); }
.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.accordion__body {
    padding: 0 2rem 1.5rem;
    color: var(--color-text-light);
}

/* Estados Activos JS */
.accordion__item.is-active .accordion__content { max-height: 400px; }
.accordion__item.is-active .accordion__header i { transform: rotate(180deg); }

/* =========================================
   PÁGINAS LEGALES (SPA)
   ========================================= */
.legal__container { max-width: 800px; }
.legal__content {
    background: var(--color-bg);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
    border: 1px solid var(--color-border);
}

.legal__content h1 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.legal__date {
    color: var(--color-text-light);
    font-weight: 500;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.legal__content h2 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
}

.legal__content p { color: var(--color-text); margin-bottom: 1rem; }
.legal__content ul { padding-left: 20px; list-style: disc; margin-bottom: 1rem; color: var(--color-text); }

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--color-primary);
    color: var(--color-bg);
    padding-top: 4rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer__brand p {
    color: #A0AEC0;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
}
.footer__socials a:hover { background: var(--color-secondary); color: var(--color-primary); }

.footer__links h3, .footer__contact h3 {
    font-family: var(--font-heading);
    color: var(--color-bg);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer__links ul li { margin-bottom: 0.8rem; color: #A0AEC0; font-size: 0.95rem; }
.footer__links ul li a:hover { color: var(--color-secondary); }

.footer__contact p {
    color: #A0AEC0;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer__contact i { color: var(--color-secondary); }

.footer__bottom {
    background-color: #0A1519;
    padding: 1.5rem 0;
    text-align: center;
    color: #718096;
    font-size: 0.85rem;
}

/* =========================================
   BOTÓN WHATSAPP FLOTANTE
   ========================================= */
.floating-wsp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: var(--shadow-md);
    z-index: 999;
}
.floating-wsp:hover { transform: scale(1.1); color: white; }

/* =========================================
   MEDIA QUERIES (RESPONSIVO)
   ========================================= */
@media (max-width: 1024px) {
    .quote__wrapper { grid-template-columns: 1fr; }
    .quote__info { padding: 3rem; }
    .form { padding: 3rem; }
}

@media (max-width: 768px) {
    .header__nav {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--color-bg);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease;
    }
    
    .header__nav.is-open { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .header__menu { flex-direction: column; text-align: center; gap: 1rem; width: 100%; }
    .header__toggle { display: block; }
    
    .hero__container { grid-template-columns: 1fr; text-align: center; }
    .hero__actions { align-items: center; margin: 0 auto; }
    .hero__title { font-size: 2.5rem; }
    
    .partners__grid { flex-wrap: wrap; justify-content: center; gap: 2rem; }
    .form__row { grid-template-columns: 1fr; gap: 0; }
    .footer__grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .footer__contact p { justify-content: center; }
    .legal__content { padding: 1.5rem; }
}