/* Variables CSS y Estilos Generales */
:root {
    --primary-color: #004A8F;
    --secondary-color: #FFC107;
    --bg-color: #f4f7f6;
    --text-color: #333;
    --light-text: #fff;
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

h1, h2, h3 {
    margin-bottom: 10px;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--light-text);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #003a70;
}

.btn-large {
    font-size: 1.2rem;
    padding: 15px 30px;
}

/* Header y Navegación */
.main-header {
    background: var(--light-text);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.header-actions span {
    margin-left: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.header-actions span.phone-number {
    margin-left: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Sección Hero */
.hero {
    background: url('https://via.placeholder.com/1920x800.png?text=Imagen+de+camiones+en+la+carretera+chilena') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Sección Razones */
.reasons {
    padding: 80px 0;
    background: var(--light-text);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.reason-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.reason-card:hover {
    transform: translateY(-10px);
}

/* Sección Planes */
.plans {
    padding: 80px 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.plan-card {
    background: var(--light-text);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.plan-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.plan-subtitle {
    font-weight: 600;
    color: #666;
    margin-bottom: 20px;
}

.plan-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.plan-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.btn-plan {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--light-text);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-plan:hover {
    background: #003a70;
}

.btn-details {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background: var(--primary-color);
    color: var(--light-text);
}

/* Sección de Detalles (Acordeón) */
.details-section {
    padding: 80px 0;
    background: var(--light-text);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-title {
    width: 100%;
    background: #f9f9f9;
    padding: 20px;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: background-color 0.3s;
}

.accordion-title:hover {
    background-color: #eee;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 20px;
}

.accordion-content.active {
    max-height: 500px; /* Ajustar según contenido */
    padding: 20px;
}

/* Sección de Contacto */
.contact {
    padding: 80px 0;
    text-align: center;
}

/* Botón de WhatsApp */
.btn-whatsapp {
    display: inline-block;
    padding: 15px 30px;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin-top: 30px;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 20px 0;
    text-align: center;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Media Queries para Responsive Design */
@media(max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .main-nav ul {
        flex-direction: column;
        margin: 10px 0;
    }
    .header-actions {
        flex-direction: column;
        margin-top: 10px;
    }
    .header-actions span {
        margin: 10px 0 0;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
}
