/* ====================================
   RESET GENERAL
==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #ffffff;
    color: #0B1F3A;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(90%, 1200px);
    margin: 0 auto;
}

/* ====================================
   HEADER
==================================== */
header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,.08);
}

.header-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    width: 180px;
    max-width: 28vw;
    height: auto;
    transition: .4s;
}

.logo:hover {
    transform: scale(1.05);
}

.header-text {
    flex: 1;
    min-width: 0;
}

.header-text h1 {
    text-align: center;
    color: #0B1F3A;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.2;
    margin-bottom: 10px;
}

/* ====================================
   MENU
==================================== */
nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 28px;
    list-style: none;
}

nav a {
    display: inline-block;
    text-decoration: none;
    color: #0B1F3A;
    font-weight: 700;
    position: relative;
    transition: .3s;
    padding: 4px 0;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 3px;
    background: #0072bc;
    transition: .3s;
}

nav a:hover,
nav a:focus {
    color: #0072bc;
}

nav a:hover::after,
nav a:focus::after {
    width: 100%;
}

/* ====================================
   HERO
==================================== */
.hero {
    background:
        linear-gradient(
            rgba(255,255,255,.92),
            rgba(255,255,255,.92)
        ),
        url('IMAGENES/NATERAS_Y_ASOCIADOS_LOGO2.jpeg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 800px;
    margin: 0 auto 30px;
}

/* ====================================
   BOTONES
==================================== */
.btn,
.btn-whatsapp {
    display: inline-block;
    padding: 14px 30px;
    margin: 8px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: .4s;
    text-align: center;
}

.btn {
    background: #0B1F3A;
    color: white;
}

.btn:hover,
.btn:focus {
    background: #0072bc;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,114,188,.35);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37,211,102,.4);
}

/* ====================================
   SERVICIOS
==================================== */
#servicios {
    padding: 80px 0 100px;
    text-align: center;
}

#servicios h2,
#cotizador h2,
#contacto h2,
#privacidad h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: 30px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 25px;
}

.card {
    width: 100%;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    border-top: 5px solid #0072bc;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: .4s;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 35px rgba(0,0,0,.15);
}

.card .icon {
    margin-bottom: 15px;
}

.card svg {
    max-width: 50px;
    height: auto;
    transition: .4s;
}

.card:hover svg {
    transform: scale(1.1);
}

.card h3 {
    margin-bottom: 15px;
    color: #0B1F3A;
}

.card p {
    color: #555;
}

/* ====================================
   COTIZADOR
==================================== */
#cotizador {
    padding: 70px 0 80px;
    overflow: hidden;
    text-align: center;
}

#cotizador p {
    margin: 0 auto 25px;
}

.cotizador-banner {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.cotizador-banner img {
    width: 100%;
    height: clamp(220px, 38vw, 500px);
    object-fit: cover;
    object-position: center;
}

/* ====================================
   FORMULARIOS
==================================== */
form {
    width: min(100%, 700px);
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: .3s;
    background: #fff;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #0072bc;
    box-shadow: 0 0 10px rgba(0,114,188,.25);
}

form button {
    width: 100%;
    background: #0B1F3A;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
}

form button:hover,
form button:focus {
    background: #0072bc;
    transform: translateY(-3px);
}

/* ====================================
   CONTACTO
==================================== */
#contacto {
    background: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.contact-info {
    margin-top: 25px;
    font-size: 1.05rem;
}

.contact-info p {
    margin-bottom: 10px;
}

/* ====================================
   AVISO DE PRIVACIDAD
==================================== */
#privacidad {
    padding: 80px 20px;
    text-align: center;
    background: #f7f9fc;
}

#privacidad p {
    max-width: 900px;
    margin: 0 auto 18px;
    color: #555;
}

/* ====================================
   FOOTER
==================================== */
footer {
    background: #0B1F3A;
    color: #ffffff;
    text-align: center;
    padding: 25px 20px;
}

footer p {
    margin: 0;
}

/* ====================================
   ANIMACIÓN
==================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   TABLETS
==================================== */
@media (max-width: 900px) {
    header {
        padding: 14px 0;
    }

    .header-container {
        gap: 18px;
    }

    .logo {
        width: 140px;
    }

    nav ul {
        gap: 8px 18px;
    }

    .hero {
        min-height: 560px;
        padding: 80px 20px;
    }
}

/* ====================================
   TELÉFONOS
==================================== */
@media (max-width: 650px) {
    html {
        scroll-padding-top: 210px;
    }

    .container {
        width: min(92%, 1200px);
    }

    header {
        padding: 12px 0 16px;
    }

    .header-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .logo {
        width: min(150px, 45vw);
        max-width: none;
    }

    .header-text {
        width: 100%;
    }

    .header-text h1 {
        margin-bottom: 10px;
    }

    nav ul {
        gap: 5px 14px;
    }

    nav a {
        font-size: .92rem;
    }

    .hero {
        min-height: 500px;
        padding: 70px 16px;
        background-size: 95% auto;
    }

    .hero h2 {
        margin-bottom: 15px;
    }

    .hero p {
        margin-bottom: 22px;
    }

    .btn,
    .btn-whatsapp {
        display: block;
        width: min(100%, 320px);
        margin: 10px auto;
    }

    #servicios,
    #contacto,
    #privacidad {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 25px 20px;
    }

    .card:hover {
        transform: none;
    }

    #cotizador {
        padding: 60px 0;
    }

    .cotizador-banner {
        border-radius: 8px;
    }

    .cotizador-banner img {
        height: auto;
        min-height: 180px;
        object-fit: cover;
    }

    form {
        margin-top: 25px;
    }

    footer {
        font-size: .9rem;
    }
}

/* ====================================
   TELÉFONOS MUY PEQUEÑOS
==================================== */
@media (max-width: 380px) {
    nav ul {
        gap: 4px 10px;
    }

    nav a {
        font-size: .84rem;
    }

    .hero {
        min-height: 460px;
    }

    .hero h2 {
        font-size: 1.85rem;
    }

    .hero p {
        font-size: .98rem;
    }
}

/* ====================================
   PÁGINAS INDEPENDIENTES
==================================== */
.page-section {
    min-height: 60vh;
    padding: 80px 0;
}

.page-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: 30px;
    text-align: center;
}

.page-section p {
    max-width: 900px;
    margin: 0 auto 18px;
}

@media (max-width: 650px) {
    .page-section {
        padding: 60px 0;
    }
}


/* ====================================
   MENÚ MÓVIL TIPO HAMBURGUESA
==================================== */
.menu-toggle {
    display: none;
    width: 48px;
    height: 44px;
    margin: 0 auto;
    border: 0;
    border-radius: 10px;
    background: #0B1F3A;
    color: #fff;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover,
.menu-toggle:focus {
    background: #0072bc;
    outline: none;
}

@media (max-width: 650px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        width: 100%;
    }

    nav ul {
        display: none;
        width: 100%;
        margin-top: 10px;
        padding: 10px;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0,0,0,.10);
    }

    nav ul.menu-open {
        display: flex;
    }

    nav li {
        width: 100%;
    }

    nav a {
        display: block;
        width: 100%;
        padding: 12px 10px;
        border-radius: 8px;
        text-align: center;
    }

    nav a:hover,
    nav a:focus {
        background: #f1f7fb;
    }

    nav a::after {
        display: none;
    }
}

/* ====================================
   NUESTROS PRINCIPALES ALIADOS
   El HTML está en index.html.
   Este bloque se encarga únicamente
   de la presentación visual.
==================================== */

#aliados {
    padding: 80px 0 90px;
    text-align: center;
    background: #f7f9fc;
}

#aliados h2 {
    color: #0B1F3A;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: 45px;
}

.aliados-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.aliado-logo {
    min-height: 170px;
    padding: 22px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease, box-shadow .3s ease;
}

.aliado-logo:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .13);
}

.aliado-logo img {
    display: block;
    width: 100%;
    max-width: 300px;
    max-height: 125px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.aliados-mas {
    margin: 38px 0 0;
    color: #0072bc;
    font-size: 1.25rem;
    font-weight: 700;
    font-style: italic;
}

@media (max-width: 900px) {
    #aliados {
        padding: 65px 0 75px;
    }

    .aliados-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .aliado-logo {
        min-height: 155px;
        padding: 18px;
    }
}

@media (max-width: 650px) {
    #aliados {
        padding: 60px 0;
    }

    #aliados h2 {
        margin-bottom: 30px;
    }

    .aliados-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .aliado-logo {
        min-height: 145px;
        padding: 20px;
    }

    .aliado-logo img {
        max-width: 280px;
        max-height: 120px;
    }

    .aliados-mas {
        margin-top: 30px;
        font-size: 1.15rem;
    }
}
