/* estilos.css */

/* RESET Y TIPOGRAFÍA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: white;
    color: #333;
    line-height: 1.6;
}

/* HEADER Y NAVEGACIÓN */
header {
    background-color: #0079C8;
    color: white;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.nav-container {
    position: relative;       /* PARA QUE .mobile-menu-btn ABSOLUTO SE ALINEE A DERECHA */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    height: 40px;
    display: flex;
    align-items: center;
}
.logo-rect {
    padding: 8px 15px;
}

/* MENÚ PRINCIPAL */
nav ul {
    display: flex;
    list-style: none;
}
nav ul li {
    margin-left: 20px;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
nav ul li a:hover {
    color: #e0e0e0;
}

/* BOTÓN HAMBURGUESA (oculto por defecto) */
.mobile-menu-btn {
    display: block;
    font-size: 28px;
    position: absolute;
    right: 20px; /* Esta propiedad lo mueve a la derecha */
    top: 20px;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1100;
}

/* SECCIONES GENERALES */
section {
    padding: 80px 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
h1, h2 {
    margin-bottom: 20px;
    color: #007aff;
}
p {
    margin-bottom: 15px;
}

/* SECCIÓN INICIO */
#inicio {
    background-image: url('doc.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}
#inicio::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero-content h1 {
    font-size: 2.5rem;
    color: white;
}
.btn {
    display: inline-block;
    background-color: #007aff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}
.btn:hover {
    background-color: #0056b3;
}

/* TARJETAS DE SEGUROS */
.seguro-card {
    display: flex;
    margin-bottom: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.seguro-img {
    flex: 1;
    min-width: 150px;
    background-image: url('/api/placeholder/400/300');
    background-size: cover;
    background-position: center;
}
.seguro-info {
    flex: 2;
    padding: 20px;
}

/* CONVENIOS */
.convenios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.convenio-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.convenio-img {
    height: 180px;
    background-image: url('/api/placeholder/400/300');
    background-size: cover;
    background-position: center;
}
.convenio-info {
    padding: 15px;
}

/* CONTACTO */
.contact-container {
    display: flex;
    gap: 30px;
}
.contact-form {
    flex: 1;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.contact-info {
    flex: 1;
}
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}
textarea {
    height: 120px;
    resize: vertical;
}
button {
    background-color: #007aff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}
button:hover {
    background-color: #0056b3;
}

/* WHATSAPP FLOTANTE */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: all 0.3s ease;
}
.whatsapp-widget:hover {
    transform: scale(1.1);
}
.whatsapp-icon {
    font-size: 30px;
}

/* RESPONSIVE: MÓVIL */
@media (max-width: 768px) {

    /* mostrar hamburguesa alineada a la derecha */
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    /* menú oculto por defecto y al 100% ancho */
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #007aff;
        padding: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        display: flex;
    }

    /* cada enlace abarca todo el ancho */
    nav ul li {
        margin: 0;
    }
    nav ul li a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        color: white;
        text-align: left;
    }

    /* adaptar tarjetas y contacto a una columna */
    .seguro-card {
        flex-direction: column;
    }
    .seguro-img {
        height: 200px;
    }
    .contact-container {
        flex-direction: column;
    }
}
