/* --- Paleta de Colores de Confianza --- */
:root {
    --purpura-vibrante: #8303A6;   /* Acción y Acentos */
    --purpura-oscuro: #5505A6;     /* Gradientes y Fondos */
    --lavanda: #B7A7D9;            /* Detalles y Bordes */
    --azul-real: #1D08A6;          /* Header, Footer y Autoridad */
    --blanco-humo: #F2F2F2;        /* Fondos de Sección */
    --white: #ffffff;
    --text-dark: #333333;
    --shadow-md: 0 10px 30px rgba(0,0,0,0.2);
    --border-radius: 12px;
}

/* --- Estilos Globales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--blanco-humo);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, .logo, .btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}


.hidden { display: none; }

/* --- Header y Navegación --- */
header {
    background-color: var(--azul-real);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { 
    font-size: 26px; 
    color: white; 
    text-decoration: none;
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 25px; 
    align-items: center; 
}

nav a { 
    color: white; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.95rem;
}

.btn-accent { 
    background: var(--purpura-vibrante); 
    padding: 10px 20px; 
    border-radius: 5px; 
    color: white !important;
}

/* Estilos para el Logo en el Header */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 45px; /* Ajusta la altura según la proporción de tu logo */
    width: auto;  /* Mantiene la proporción original */
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05); /* Efecto sutil al pasar el mouse */
}
.menu-toggle { display: none; color: white; font-size: 1.5rem; }

/* --- Hero Section --- */
#hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--purpura-oscuro), var(--azul-real));
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('../img/hero-pattern.png'); /* Opcional: Patrón sutil */
    opacity: 0.1;
}

.hero-grid { 
    position: relative;
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    align-items: center; 
}

.hero-text h1 { font-size: 42px; margin-bottom: 20px; line-height: 1.2; }
.hero-text p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 30px; }

/* --- Cotizador Card --- */
.hero-widget-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cotizador-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    border-top: 6px solid var(--purpura-vibrante);
}

.cotizador-header { text-align: center; margin-bottom: 20px; }
.cotizador-header h3 { color: var(--azul-real); margin-bottom: 10px; }

.steps-indicator {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #999;
}

.step.active { color: var(--purpura-vibrante); font-weight: 700; }

.input-group { margin-bottom: 15px; }
.input-row { display: flex; gap: 15px; }

input, select { 
    width: 100%; 
    padding: 14px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    font-size: 1rem;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--purpura-vibrante);
}

/* --- Botones --- */
.btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

.btn-primary { background: var(--purpura-vibrante); color: white; }
.btn-secondary { background: var(--azul-real); color: white; }
.btn-block { margin-top: 10px; }

/* --- Resultado del Cotizador --- */
.result-content { text-align: center; }
.price-box {
    background: var(--blanco-humo);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
}

.total-price { display: block; font-size: 32px; font-weight: 800; color: var(--purpura-vibrante); }
.installments { display: block; font-size: 14px; color: #666; }
.disclaimer { font-size: 12px; color: #999; margin-bottom: 15px; }

/* --- Trust Signals --- */
.trust-signals { display: flex; align-items: center; gap: 20px; }
.logos-container { font-size: 2.2rem; opacity: 0.5; display: flex; gap: 15px; color: white; }
.guarantee-seal { display: flex; align-items: center; gap: 10px; color: white; }
.seal-icon { font-size: 2.5rem; color: var(--lavanda); }
.seal-text strong { display: block; font-size: 0.95rem; }

/* --- Beneficios --- */
#beneficios { padding: 100px 0; background: white; }
.section-title { text-align: center; margin-bottom: 50px; color: var(--azul-real); font-size: 32px; }

.beneficios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.beneficios-column h3 { margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.beneficios-column i { font-size: 1.5rem; }

.inquilinos h3 { color: var(--purpura-vibrante); }
.propietarios h3 { color: var(--azul-real); }

.beneficios-column ul li { display: flex; gap: 15px; margin-bottom: 20px; list-style: none; }
.beneficios-column strong { display: block; font-size: 1.1rem; }
.beneficios-column p { font-size: 0.95rem; color: #666; }

/* --- Footer --- */
footer { background: var(--azul-real); color: white; padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { font-size: 28px; margin-bottom: 15px; display: block; }
.footer-col h4 { margin-bottom: 20px; }
.footer-col ul li { list-style: none; margin-bottom: 10px; opacity: 0.8; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; }

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1001;
}

/* Espaciado para los contenedores de botones De beneficios*/
.cta-container {
    margin-top: 30px;
    display: flex;
    justify-content: flex-start;
}

/* Ajuste para que los botones en esta sección no ocupen necesariamente el 100% en desktop */
#beneficios .btn {
    width: auto;
    min-width: 250px;
    padding: 14px 30px;
}

/* Icono de WhatsApp dentro del botón */
#btn-cta-propietario i {
    margin-right: 10px;
    font-size: 1.2rem;
    vertical-align: middle;
}


/* --- Sección FAQ --- */
#faq {
    padding: 80px 0;
    background-color: var(--blanco-humo);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: start;
}

.faq-category h3 {
    color: var(--azul-real);
    margin-bottom: 20px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-category h3 i {
    color: var(--purpura-vibrante);
}

/* --- Estilo del Acordeón (Details/Summary) --- */
details {
    background: white;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
}

details[open] {
    border-color: var(--purpura-vibrante);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

summary {
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Flecha indicadora */
summary::after {
    content: '\f078'; /* Icono FontAwesome flecha abajo */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--purpura-vibrante);
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(180deg);
}

details p {
    padding: 0 20px 20px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Quitar el marcador por defecto en navegadores antiguos */
summary::-webkit-details-marker {
    display: none;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .cta-container {
        justify-content: center;
    }
    #beneficios .btn {
        width: 100%;
    }

    .logo-img {
        height: 35px; /* Logo un poco más pequeño en pantallas móviles */
    }
}

/* --- Mobile Responsive --- */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-widget-container { align-items: center; }
    .beneficios-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}