/* =========================
   NOVA CONSULTORES - STYLE
   ========================= */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #2B2B2B;
    background: #ffffff;
    line-height: 1.6;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.form-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.footer-logo {
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #0A2348;
    cursor: pointer;
}

/* ========================= */
/* BOTÓN VOLVER ARRIBA */
/* ========================= */

#btnTop{
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #0D2B52;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 9999;
    transition: all .3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
}

#btnTop:hover{
    background: #D8A642;
    transform: translateY(-5px);
}

/* =========================
   HEADER
========================= */

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 45px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #0A2348;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #2E6FB8;
}

nav ul li a.active{

    color: #D8A642;

}

.btn-header {
    background: #0A2348;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-header:hover {
    background: #2E6FB8;
}

/* =========================
   HERO
========================= */

.hero {
    height: 100vh;
    background: url('../images/hero.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 35, 72, 0.75);
}

.hero-content {
    position: relative;
    max-width: 800px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-buttons a {
    margin: 0 10px;
}

/* BUTTONS */
.btn-primary {
    background: #2E6FB8;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #0A2348;
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: white;
    color: #0A2348;
}

/* =========================
   SECTIONS
========================= */

section {
    padding: 80px 0;
}

/* TITLES */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title span {
    color: #2E6FB8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.section-title h2 {
    font-size: 32px;
    margin-top: 10px;
}

.social a{
    color: black;
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-grid img {
    width: 100%;
    border-radius: 10px;
}

/* SERVICES */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cards article {
    background: #F4F6F9;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

.cards article:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cards i {
    font-size: 30px;
    color: #2E6FB8;
    margin-bottom: 10px;
}

/* STATS */
.stats {
    background: #0A2348;
    color: white;
    text-align: center;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.counter h2 {
    font-size: 40px;
    color: #2E6FB8;
}

/* MISSION */
.mission .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mission .box {
    background: #F4F6F9;
    padding: 25px;
    border-radius: 10px;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, #0A2348, #2E6FB8);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

/* FOOTER */
footer {
    background: #041B3C;
    color: white;
    text-align: center;
    padding: 40px 0;
}

footer .social a {
    color: white;
    margin: 0 10px;
    font-size: 18px;
}

/* =========================
   RESPONSIVE BASICO
========================= */

@media (max-width: 992px) {

    .about-grid {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission .container {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 768px) {

    header .container {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 15px;
    }

    /* Botón hamburguesa a la izquierda */
    .menu-toggle {
        display: block;
        order: 1;
        margin-right: 15px;
    }

    /* Botón Agenda una cita permanece visible */
    .btn-header {
        display: inline-block;
        order: 2;
        margin-left: auto;
    }

    /* Menú desplegable ocupa toda la fila */
    #menu {
        display: none;
        width: 100%;
        order: 3;
    }

    #menu.active {
        display: block;
    }

    #menu ul {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        text-align: center;
    }
}

@media (max-width: 600px) {

    .hero h1 {
        font-size: 32px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    header .container {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 15px;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .menu-toggle {
        display: block;
        order: 1;
        margin-right: 15px;
    }

    .btn-header {
        display: inline-block;
        order: 2;
        margin-left: auto;
    }

    .footer-logo {
        max-width: 390px;
    }

}