/* VARIABLES DE DISEÑO */
:root {
    --bg-cream: #FCFBF7;
    --text-dark: #232320;
    --text-muted: #5E6561;
    --brand-main: #979265;
    --brand-accent: #eeba2b;
    --accent-light: #fcf8ec;
    --white: #FFFFFF;
    --shadow-soft: 0 15px 35px rgba(151, 146, 101, 0.1);
    --shadow-hard: 0 25px 50px -12px rgba(151, 146, 101, 0.2);
    --cta: #6b7040;
}

/* RESET GENERAL */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* HEADER Y LOGO */
.header-brand {
    padding: 40px 20px 10px;
    text-align: center;
}

.brand-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.brand-logo-link:hover {
    transform: scale(1.02);
}

.brand-logo-img {
    max-height: 380px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* HERO (INTRODUCCIÓN) */
.hero {
    max-width: 850px;
    margin: 30px auto 70px;
    text-align: center;
    padding: 0 20px;
}

.hero-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--brand-main);
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

/* HERO CTA */
.hero-cta {
    display: inline-block;
    margin-top: 22px;
    padding: 12px 26px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--cta) 0%, #5e6a31 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(102,110,66,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(102,110,66,0.16); }
.hero-cta:focus { outline: 3px solid rgba(151,146,101,0.18); outline-offset: 3px; }

/* SECCIÓN DE PRECIOS Y PAQUETES */
.pricing-section {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 25px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* TARJETAS DE PAQUETE */
.card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 50px 35px;
    border: 1px solid rgba(151, 146, 101, 0.15);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.45s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hard);
    border-color: rgba(151, 146, 101, 0.4);
}

.card.featured {
    background-color: var(--white);
    border: 2px solid var(--brand-accent);
    transform: translateY(-6px);
}

.card.featured::before {
    content: "MÁS COMPLETO";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--brand-accent);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 18px;
    border-radius: 30px;
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.phone-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}
.phone-header img {
    width: 140px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.08));
    transition: transform .25s ease;
}
.phone-header img:hover { transform: translateY(-4px); }

.features-list {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.features-list li {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.features-list li i {
    color: var(--brand-accent);
    font-size: 1.1rem;
    margin-top: 3px;
}

.card-price {
    text-align: center;
    margin-bottom: 12px;
    font-weight: 800;
    color: var(--text-dark);
    font-size: 1.2rem;
}
.card-price .amount { font-size: 1.35rem; margin-right: 6px; }
.card-price .currency { font-size: 0.95rem; color: var(--text-muted); }

.btn-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: transform 0.28s cubic-bezier(.2,.9,.3,1), box-shadow 0.28s;
    cursor: pointer;
    border: 2px solid var(--brand-main);
    background-color: transparent;
    color: var(--brand-main);
    box-shadow: 0 6px 18px rgba(151,146,101,0.06);
}

.btn-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(151,146,101,0.12);
    background-color: rgba(151,146,101,0.04);
}

.btn-preview:focus {
    outline: 3px solid rgba(151,146,101,0.18);
    outline-offset: 3px;
}

.card.featured .btn-preview {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--text-dark);
}

.card.featured .btn-preview:hover {
    background-color: #d8a825;
    border-color: #d8a825;
    color: var(--text-dark);
}

/* MODAL / VENTANA EMERGENTE */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 35, 32, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-container {
    background-color: var(--bg-cream);
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    overflow: hidden;
    position: relative;
    animation: modalScale 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-height: 80vh;
}

@keyframes modalScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.btn-close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: all 0.3s;
}

.btn-close-modal:hover {
    background-color: var(--brand-accent);
    color: var(--text-dark);
}

.modal-visual-side {
    background: linear-gradient(135deg, rgba(151,146,101,0.06) 0%, rgba(110,106,71,0.02) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.phone-frame {
    width: 270px;
    height: 520px;
    background-color: #0d0e0d;
    border-radius: 40px;
    border: 10px solid #1c1c1c;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 4px rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg-cream);
    overflow-y: scroll;
    position: relative;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-accent) rgba(0,0,0,0.1);
}

.phone-image-wrapper {
    width: 100%;
    height: auto;
    display: block;
    background-color: var(--bg-cream);
}

.phone-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Lado Derecho del Modal */
.modal-info-side {
    padding: 60px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.modal-info-side h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.modal-info-side p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1rem;
}

.config-box {
    background-color: var(--accent-light);
    border-left: 4px solid var(--brand-accent);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 35px;
}

.config-box h4 {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.config-box p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-confirm-action {
    display: inline-block;
    text-align: center;
    background-color: var(--brand-main);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-confirm-action:hover {
    background-color: var(--brand-accent);
    color: var(--text-dark);
}

@media (max-width: 820px) {
    .modal-container {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-visual-side {
        padding: 30px 10px;
    }
    .modal-info-side {
        padding: 40px 25px;
    }
}

/* --- SECCIÓN DE PREGUNTAS FRECUENTES (FAQ) --- */
.faq-section {
    max-width: 850px;
    margin: 0 auto 100px;
    padding: 0 25px;
}

.faq-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid rgba(151, 146, 101, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--accent-light);
}

.faq-question i {
    color: var(--brand-accent);
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    background-color: var(--white);
}

.faq-answer-inner {
    padding: 0 25px 25px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- BOTÓN FLOTANTE DE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 900;
    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: #20b858;
    color: #FFF;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
                right: 25px;
        font-size: 28px;
    }
}

/* --- SITE FOOTER --- */
.site-footer {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 28px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    background: transparent;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-weight: 700;
}
.footer-brand img { height: 36px; width: auto; display: block; }
.footer-links { display:flex; gap: 14px; align-items:center; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text-dark); text-decoration: underline; }
.footer-legal { color: var(--text-muted); }

@media (max-width: 720px) {
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

:focus { outline: none; }
:focus-visible {
    outline: 3px solid rgba(151,146,101,0.18);
    outline-offset: 3px;
}

@media (max-width: 520px){
    .hero h1 { font-size: 1.9rem; }
    .card { padding: 28px 20px; }
    .brand-logo-img { max-height: 320px; }
    .phone-header img { width: 120px; }
}