/* --------- V2: RESET / BASE - UX 10/10 --------- */

/* Variables de Color: Mayor Contraste y Acento */
:root {
    --primary-color: #0A2A66;      /* Azul Marino Oscuro */
    --secondary-color: #14457A;    /* Azul Intermedio - Fondo */
    --accent-color: #FF6600;       /* Naranja Vibrante - CTA / Destacados */
    --text-light: #ffffff;
    --card-bg: #EFEFEF;            /* Fondo de Tarjeta Claro */
    --text-dark: #111111;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--secondary-color);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; /* empuja el footer hacia abajo */
    max-width: 1000px;
    margin: auto;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

a { 
    text-decoration: none; 
    color: inherit; 
}

h2, .section-heading {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 30px;
    color: var(--accent-color); /* Títulos de sección en acento */
    text-transform: uppercase;
}

/* --------- HEADER --------- */
header {
    text-align: center;
    padding: 40px 10px 20px 10px;
    background: var(--primary-color);
}

.titulo-principal {
    font-size: 60px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.subtitulo-principal {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 40px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a7c1e3;
}

/* --------- BREADCRUMB --------- */
.breadcrumb {
    text-align: center;
    margin-bottom: 25px;
    font-size: 15px;
    font-weight: 500;
    color: #BBBBBB;
}

.breadcrumb a {
    color: #EFEFEF;
    transition: color 0.3s;
}

.breadcrumb a:hover { color: var(--accent-color); }
.breadcrumb span { margin: 0 5px; }
.breadcrumb .actual { 
    color: var(--accent-color); /* Color de acento para el elemento actual */
    font-weight: 700; 
}

/* -------------------------------------- */
/* --------- PRODUCT HERO / CARDS --------- */
/* -------------------------------------- */

/* Tarjeta Principal de Presentación */
.product-hero {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.hero-card {
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 18px;
    padding: 35px;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--accent-color); /* Borde de acento */
}

.hero-card i {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.hero-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
}

.hero-card p {
    font-size: 17px;
    line-height: 1.6;
}

/* Grid de Coberturas (Reemplaza .cobertura-list) */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.coverage-card {
    background: var(--card-bg);
    color: var(--primary-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.coverage-card:hover {
    transform: translateY(-5px);
    background: #E0E0E0;
}

.coverage-card i {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.coverage-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
}

.coverage-card p {
    font-size: 14px;
    line-height: 1.4;
    color: #444;
}


/* -------------------------------------- */
/* --------- CALL TO ACTION (CTA) --------- */
/* -------------------------------------- */
.cta-section {
    background: var(--primary-color);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.cta-section h3 {
    color: var(--accent-color);
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    background: #25D366; /* Color de WhatsApp para alto impacto */
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease, transform 0.1s;
}

.cta-button:hover {
    background: #1ebe5d;
    transform: scale(1.02);
}

.cta-button i {
    margin-right: 10px;
}

/* -------------------------------------- */
/* --------- FOOTER (Ajustes de color) --------- */
/* -------------------------------------- */
footer {
    background: var(--primary-color);
    color: #ffffff;
    padding: 40px 20px 20px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.footer-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--secondary-color); /* Color de línea de división */
}

.footer-content-grid h4 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-color); /* Títulos del footer en acento */
}

.footer-contact a,
.footer-contact p a {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--accent-color); /* Hover en color de acento */
}

.mapa-box iframe {
    width: 100%;
    height: 150px;
    border: 0;
    border-radius: 8px;
}

.social-links {
    display: flex;
    gap: 15px;
    padding: 0;
    list-style: none;
}

.social-links li a {
    color: #ffffff;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links li a:hover { 
    color: var(--accent-color); /* Hover en color de acento */
}

.ssn-logo-box img {
    margin-top: 10px;
    max-width: 120px;
    height: auto;
}

.ssn-legal {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    color: #BBBBBB;
    font-size: 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .titulo-principal { font-size: 50px; }
    .subtitulo-principal { font-size: 14px; }
    .hero-card { padding: 25px; margin-bottom: 30px; }
    .hero-card h3 { font-size: 22px; }
    .hero-card p { font-size: 15px; }
    
    .coverage-grid {
        grid-template-columns: 1fr;
    }

    .cta-button {
        font-size: 16px;
        padding: 12px 20px;
    }
}

/* --- NUEVOS ESTILOS PARA SEGUROS AUTOMOTOR --- */

/* Contenedor de Hero Dividido (Auto y Moto) */
.product-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-card-item {
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 18px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--secondary-color);
}

.hero-card-item:hover {
    border-color: var(--accent-color); /* Resalta con el color de acento al pasar el mouse */
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

.hero-card-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.hero-card-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 0;
    color: var(--text-light);
}

.hero-card-item p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 0;
    color: #a7c1e3; /* Texto más claro */
}

/* Esto iría en tu archivo paginas_styles_v2.css */
.servicio-card {
    /* ... otros estilos de la tarjeta ... */
    display: flex; /* Habilita Flexbox */
    flex-direction: row; /* Fuerza la alineación horizontal */
    align-items: center; /* Alinea verticalmente el ícono y el texto */
    gap: 15px; /* Añade un espacio entre el ícono y el texto */
    text-align: left; /* Asegura que el texto comience a la izquierda */
}

.servicio-card h3 {
    margin: 0; /* Elimina márgenes que podrían romper la alineación */
}
/* ... */

/* Responsive para la sección dividida */
@media (max-width: 768px) {
    .product-hero-split {
        grid-template-columns: 1fr; /* Pasa a ser una sola columna en móviles */
    }
    /* Se aplica en pantallas con un ancho máximo de 768px (típico para móviles) */
@media (max-width: 768px) {
    /* 1. Ajustar la posición del botón flotante */
    .wa-btn {
        /* Mueve el botón más arriba, lejos del borde inferior.
           Ajusta este valor según la altura de tu footer en móvil. */
        bottom: 120px; 
    }
    
    /* 2. Asegurar que el footer sea más alto que la distancia 'bottom' del botón
          para que no quede oculto o superpuesto de forma inesperada. */
    #contacto {
        /* Añade un padding inferior para asegurar que haya espacio entre el
           contenido del footer y el botón 'wa-btn' flotante. */
        padding-bottom: 150px; 
    }
}
}