/* Variables del Sistema */
:root {
    --primary-blue: #007BFF;
    --primary-blue-dark: #0056b3;
    --accent-green: #00B894;
    --accent-green-hover: #009879;
    --bg-light-blue: #f0f7ff;
    --bg-light-green: #f2fbf8;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --white: #ffffff;
    --shadow-card: 0 10px 30px rgba(0, 123, 255, 0.1);
    --shadow-hover: 0 15px 35px rgba(0, 123, 255, 0.18);
    --radius-lg: 16px;
    --radius-md: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navegación */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Marca / Logo Corregido */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo svg {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-text .blue-text {
    color: var(--primary-blue);
}

.logo-text .green-text {
    color: var(--accent-green);
    margin-left: 3px;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-blue);
}

.contact-link svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-green);
    flex-shrink: 0;
}

.btn-header {
    background-color: var(--accent-green);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-header:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.92) 0%, rgba(0, 86, 179, 0.88) 100%),
                url('../img/familia-feliz-con-isapres.webp') center/cover no-repeat;
    padding: 70px 0 90px;
    color: var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: #55efc4;
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-item svg {
    width: 18px;
    height: 18px;
    fill: #55efc4;
    flex-shrink: 0;
}

/* Form Card */
.form-card {
    background: var(--white);
    color: var(--text-dark);
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-header h2 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.form-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.quote-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group label span {
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    transition: var(--transition);
    outline: none;
    background-color: #f8fafc;
}

.form-control:focus {
    border-color: var(--primary-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%3a636e72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.btn-submit {
    grid-column: span 2;
    background-color: var(--accent-green);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.3);
}

.btn-submit:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
}

.btn-submit svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
    flex-shrink: 0;
}

/* Carrusel de Isapres */
.brands-section {
    padding: 45px 0;
    background-color: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    overflow: hidden;
}

.brands-title {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    align-items: center;
    width: calc(250px * 10);
    animation: scroll 22s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.brand-item {
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 25px;
}

.brand-item img {
    max-width: 160px;
    max-height: 55px;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.85;
    transition: var(--transition);
}

.brand-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); }
}

/* Beneficios */
.benefits-section {
    padding: 90px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header .tag {
    display: inline-block;
    background-color: var(--bg-light-blue);
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background-color: var(--white);
    border: 1px solid #edf2f7;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    position: relative;
    top: 0;
}

.benefit-card:hover {
    top: -8px;
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 123, 255, 0.2);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--bg-light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.benefit-card:hover .icon-wrapper {
    background: var(--primary-blue);
}

.icon-wrapper svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-blue);
    transition: var(--transition);
    flex-shrink: 0;
}

.benefit-card:hover .icon-wrapper svg {
    fill: var(--white);
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ¿Por qué Elegirnos? */
.why-us-section {
    padding: 90px 0;
    background: linear-gradient(180deg, var(--bg-light-blue) 0%, var(--bg-light-green) 100%);
}

.why-us-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.why-us-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1.25;
}

.why-us-content p {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.7;
}

.why-us-features {
    margin-bottom: 35px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.98rem;
}

.feature-item svg {
    width: 22px;
    height: 22px;
    fill: var(--accent-green);
    flex-shrink: 0;
}

.why-us-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-primary-action {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary-action:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-2px);
}

.btn-whatsapp-action {
    background-color: #25D366;
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-action:hover {
    background-color: #1eb957;
    transform: translateY(-2px);
}

.btn-whatsapp-action svg, .btn-primary-action svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
    flex-shrink: 0;
}

.why-us-stat-box {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0056b3 100%);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    color: var(--white);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.stat-item h3 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #55efc4;
    line-height: 1;
}

.stat-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 5px;
}

.stat-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

/* Footer */
.site-footer {
    background-color: #1e272e;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info .brand-logo {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-info p {
    color: #a4b0be;
    font-size: 0.95rem;
    max-width: 380px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--accent-green);
    border-radius: 2px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a4b0be;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-contact-item:hover {
    color: var(--white);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--accent-green);
    flex-shrink: 0;
}

/* Footer Bottom Refactorizado */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: #747d8c;
    font-size: 0.88rem;
}

.dev-credit a {
    color: #54a0ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.dev-credit a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1eb957;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
    flex-shrink: 0;
}

/* Responsividad */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-text { text-align: center; }
    .hero-text h1 { font-size: 2.3rem; }
    .hero-badges { justify-content: center; }
    .benefits-grid { grid-template-columns: 1fr; gap: 20px; }
    .why-us-card { grid-template-columns: 1fr; padding: 40px 25px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 600px) {
    .navbar { flex-direction: column; gap: 12px; }
    .quote-form { grid-template-columns: 1fr; }
    .form-group.full-width, .btn-submit { grid-column: span 1; }
    .hero-text h1 { font-size: 1.85rem; }
    .why-us-buttons { flex-direction: column; width: 100%; }
    .btn-primary-action, .btn-whatsapp-action { width: 100%; justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
}