/* 🔁 Reset general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 🌐 Tipografía y colores base */
body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #e6ecf0;
}

/* 📦 Contenedor principal */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* 🧭 Header institucional */
.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: #1e272e;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    gap: 20px;
}

/* 🌲 Logo */
.logo img {
    max-height: 80px;
    border: 2px solid #FFD700;
    border-radius: 10px;
}

/* 🏛️ Título */
.titulo h1 {
    font-family: 'Cinzel', serif;
    margin: 0;
}

.titulo h3 {
    font-family: 'Libre Bodoni', serif;
    font-size: 1rem;
    margin: 5px 0;
}

/* 🧭 Menú de navegación */
.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.menu a:hover {
    border-bottom: 2px solid #FFD700;
}

/* 📦 Sección genérica */
.seccion {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 💬 WhatsApp */
.contacto-wasap {
    background-color: #dff6e4;
    /* verde pastel tipo WhatsApp */
    border-left: 5px solid #25D366;
    /* verde oficial WhatsApp */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 🚨 Siniestros */
.siniestros {
    background-color: #fef9e7;
    border-right: 5px solid #FFD700;
}

.siniestros h2 {
    color: #1A2A6C;
    text-shadow: 1px 1px 2px rgba(255, 215, 0, 0.3);
}

.pasos-siniestro {
    list-style: none;
    padding-left: 0;
}

.pasos-siniestro li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.pasos-siniestro i {
    margin-right: 8px;
}

/* 📰 Noticias */
.panel-noticias {
    background-color: #f5f5f5;
    border-left: 5px solid #1A2A6C;
    padding: 20px;
    border-radius: 10px;
}

.panel-noticias h2 {
    color: #1A2A6C;
    margin-bottom: 20px;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.noticia-card {
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.noticia-card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
}

.noticia-card h4 {
    font-size: 1rem;
    color: #1A2A6C;
    margin-bottom: 8px;
}

.noticia-card a {
    font-weight: bold;
    color: #FFD700;
    text-decoration: none;
}

.noticia-card a:hover {
    color: #1A2A6C;
}

/* 🛡️ Aseguradoras */
.aseguradoras {
    background-color: #dbe3f5;
    border-left: 5px solid #1A2A6C;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: fit-content;
    color: #1e272e;
}

.aseguradoras h3 {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(255, 215, 0, 0.3);
}

.logos-aseguradoras {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    justify-items: center;
    align-items: center;
}

.logos-aseguradoras img {
    max-width: 100%;
    object-fit: contain;
    border: 2px solid #FFD700;
    border-radius: 8px;
    background-color: #fff;
    padding: 4px;
    transition: transform 0.3s ease;
}

.logos-aseguradoras a:hover img {
    transform: scale(1.08);
}

/* 🧾 Formulario horizontal de contacto */
.formulario-horizontal {
    background-color: #f5f5f5;
    border-top: 5px solid #999;
    border-bottom: 5px solid #999;
    width: 100%;
    padding: 30px 0;
}

.formulario-horizontal h2 {
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.formulario-horizontal .form-control {
    border: 2px solid #999;
    border-radius: 10px;
    font-size: 1rem;
    padding: 10px;
    background-color: #fff;
    color: #333;
    resize: vertical;
}

.formulario-horizontal .form-control::placeholder {
    color: #999;
}

.formulario-horizontal .btn {
    background-color: #333;
    color: #fff;
    font-weight: bold;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.formulario-horizontal .btn:hover {
    background-color: #000;
}

/* ✅ Respuesta del formulario */
#respuesta {
    margin-top: 20px;
    padding: 10px;
    font-weight: bold;
    border-radius: 5px;
    display: none;
    text-align: center;
}

#respuesta.ok {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#respuesta.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 🧭 Footer institucional */
.footer {
    background-color: #1e272e;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    margin-top: 40px;
}

.footer-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.footer-link:hover {
    text-decoration: underline;
    color: #fff;
}

/* ✅ Respuesta del formulario */
#respuesta {
    margin-top: 20px;
    padding: 10px;
    font-weight: bold;
    border-radius: 5px;
    display: none;
    text-align: center;
}

#respuesta.ok {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#respuesta.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* 🌐 Base: móviles chicos */
body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #999; /* color base para móviles chicos */
}

/* 📱 Móviles grandes (≥577px) */
@media (min-width: 577px) {
    body {
        background-color: orange; /* test visual */
    }
}

/* 📲 Tablets verticales (≥769px) */
@media (min-width: 769px) {
    body {
        background-color: pink; /* test visual */
    }
}

/* 📲 Tablets horizontales y notebooks chicos (≥993px) */
@media (min-width: 993px) {
    body {
        background-color: lightblue; /* test visual */
    }
}

/* 💻 Desktop grande (≥1201px) */
@media (min-width: 1201px) {
    body {
        background-color: white; /* color final para pantallas grandes */
    }
}