/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #004d99; /* Azul Corporativo (Confianza) */
    --secondary-color: #ff9900; /* Naranjo (Énfasis / CTA) */
    --background-light: #f4f7f9;
    --text-dark: #333333;
    --alert-color: #e30000; /* Rojo (Alerta 24/7) */
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: white;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ================== HEADER ================== */
.header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 10px 15px;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: var(--secondary-color);
}

.whatsapp-btn-header {
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.whatsapp-btn-header:hover {
    background-color: #e68a00;
}

/* ================== HERO SECTION ================== */
.hero {
    background: linear-gradient(rgba(0, 77, 153, 0.8), rgba(0, 77, 153, 0.8)), url('placeholder-imagen-chile.jpg') no-repeat center center/cover; /* Usar una imagen relevante de Chile aquí */
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: white;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.alert-247 {
    background-color: var(--alert-color);
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-whatsapp {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-whatsapp:hover {
    background-color: #e68a00;
    transform: scale(1.05);
}

/* ================== ATRIBUTOS ================== */
.attributes {
    padding: 50px 0;
    background-color: var(--background-light);
}

.attributes-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    text-align: center;
}

.attribute-item {
    flex: 1;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.attribute-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.highlight-247 {
    background-color: var(--primary-color);
    color: white;
}

.highlight-247 i {
    color: var(--secondary-color);
}

.highlight-247 h3 {
    color: white;
}

/* ================== COTIZADOR WHATSAPP ================== */
.cotizador-section {
    padding: 60px 0;
    text-align: center;
}

.cotizador-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 20px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cotizador-form input,
.cotizador-form select,
.cotizador-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.cotizador-form textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-whatsapp {
    background-color: #25d366; /* Color de WhatsApp */
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-whatsapp:hover {
    background-color: #1faa54;
}

/* ================== FOOTER ================== */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0 10px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-info, .footer-social, .footer-legal {
    flex: 1;
    min-width: 200px;
}

.footer h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer p, .footer ul li a {
    color: #cccccc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.footer ul {
    list-style: none;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #888888;
}

/* ================== MEDIA QUERIES (RESPONSIVE) ================== */
@media (max-width: 900px) {
    .main-nav {
        display: none; /* Ocultar menú principal en móvil, usar un menú hamburguesa real */
    }

    .nav-content {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .attributes-grid {
        flex-direction: column;
    }

    .footer-grid {
        flex-direction: column;
    }
}

/* Fin del CSS */
