* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui;
    background: #F1F5F9;
    color: #1E293B;
}

/* container */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* topbar */

.topbar {
    background: #2563EB;
    color: white;
    font-size: 14px;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.top-links a {
    color: white;
    margin-right: 15px;
    text-decoration: none;
}

/* header */

.header {
    background: #0F172A;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* logo */

.logo a {
    color: white;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

/* MENU MOBILE */

#menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0F172A;
    display: flex;
    flex-direction: column;
    padding: 90px 30px;
    transform: translateX(-100%);
    transition: .35s;
    z-index: 1500;
}

#menu.active {
    transform: translateX(0);
}

#menu a,
.submenu-toggle {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

/* botón */

.btn-menu {
    background: #2563EB;
    padding: 14px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* hamburguesa */

.menu-toggle {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 2000;
}

.menu-toggle span {
    height: 3px;
    background: white;
    transition: .3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* submenu mobile */

.menu-item {
    display: flex;
    flex-direction: column;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: max-height .35s ease;
}

.submenu a {
    padding: 12px 10px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.submenu.active {
    max-height: 300px;
}

.arrow {
    transition: .3s;
}

.arrow.rotate {
    transform: rotate(180deg);
}

/* =====================
DESKTOP
===================== */

@media (min-width:768px) {
    .btn-menu {
        margin-top: 0;
        display: flex;
        align-items: center;
    }

    .menu-toggle {
        display: none;
    }

    #menu {
        position: static;
        transform: none;
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: 28px;
        background: none;
        padding: 0;
        margin-left: auto;
    }

    #menu a,
    .submenu-toggle {
        border: none;
        font-size: 15px;
        padding: 10px 14px;
    }

    /* dropdown */

    .menu-item {
        position: relative;
    }

    .submenu {
        position: absolute;
        top: 42px;
        left: 0;

        background: #2563EB;

        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, .15);

        min-width: 220px;

        display: none;
        flex-direction: column;

        max-height: none;
    }

    .submenu a {
        color: white;
        padding: 12px 18px;
        border: none;
    }

    /* hover */

    .menu-item:hover .submenu {
        display: flex;
    }

    .arrow {
        display: none;
    }

}

/* desktop spacing */

@media (min-width:1024px) {

    #menu {
        justify-content: flex-end;
    }

    #menu a,
    .submenu-toggle {
        position: relative;
    }

    #menu a::after,
    .submenu-toggle::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 0;
        height: 2px;
        background: #2563EB;
        transition: .25s;
    }

    #menu a:hover::after,
    .submenu-toggle:hover::after {
        width: 100%;
    }

}

/* CTA */

.cta-urgente {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #EF4444;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.05)
    }

    100% {
        transform: scale(1)
    }
}

/* ======================
FOOTER
====================== */

footer {
    background: #0B1326;
    color: #CBD5E1;
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    margin: 8px 0;
}

footer a {
    color: #3B82F6;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* ======================
FOOTER DESKTOP
====================== */

@media (min-width:768px) {

    footer {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px;
        text-align: left;
        flex-wrap: wrap;
    }

    footer p {
        margin: 0;
    }

}

/* =========================
HERO SECTION
========================= */

.hero-section {
    background: #061A4B;
    padding: 80px 20px;
    color: white;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

/* badge */

.hero-badge {
    display: inline-block;
    background: #1E293B;
    color: #FFC107;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* título */

.hero-content h1 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: #FFC107;
}

/* texto */

.hero-content p {
    color: #CBD5E1;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 520px;
}

/* botones */

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #FFC107;
    color: #000;
    padding: 14px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
}

.btn-outline {
    border: 2px solid #FFC107;
    color: #FFC107;
    padding: 12px 26px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
}

/* imagen */

.hero-image img {
    width: 100%;
    border-radius: 20px;
}

/* =========================
TABLET
========================= */

@media (min-width:768px) {

    .hero-content h1 {
        font-size: 46px;
    }

}

/* =========================
DESKTOP
========================= */

@media (min-width:1024px) {

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .hero-content h1 {
        font-size: 56px;
    }

}

/* =========================
HERO
========================= */

.hero {
    background: linear-gradient(135deg, #0F172A, #1E3A8A);
    color: white;
    text-align: center;
    padding: 100px 20px 80px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    color: #CBD5E1;
    max-width: 600px;
    margin: auto;
    line-height: 1.6;
}

.hero-botones {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* botones */

.btn {
    background: #3B82F6;
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all .3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-sec {
    background: #FACC15;
    color: #000;
}

/* =========================
SERVICIOS
========================= */

.servicios {
    padding: 80px 20px;
    background: #F8FAFC;
    text-align: center;
}

.servicios h2 {
    font-size: 32px;
    margin-bottom: 50px;
}

.grid-servicios {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1000px;
    margin: auto;
}

/* cards */

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all .3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.card p {
    color: #64748B;
    font-size: 15px;
}

/* =========================
PROBLEMAS
========================= */

.problemas {
    background: #0F172A;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.problemas h2 {
    font-size: 30px;
    margin-bottom: 40px;
}

.problemas ul {
    list-style: none;
    max-width: 700px;
    margin: auto;
    display: grid;
    gap: 15px;
}

.problemas li {
    background: #1E293B;
    padding: 14px 20px;
    border-radius: 8px;
}

/* =========================
DIAGNOSTICO
========================= */

.diagnostico {
    padding: 80px 20px;
    background: #F8FAFC;
    text-align: center;
}

.diagnostico h2 {
    font-size: 30px;
    margin-bottom: 30px;
}

form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
textarea {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    font-size: 15px;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button.btn {
    margin-top: 10px;
}

/* =========================
RESPONSIVE
========================= */

@media (min-width:768px) {

    .hero h1 {
        font-size: 56px;
    }

    .grid-servicios {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (min-width:1024px) {

    .grid-servicios {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero {
        padding: 120px 20px;
    }

}

/* SELECT FORMULARIO */

#tipoProblema {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    font-size: 15px;
    font-family: system-ui;
    background: white;
    color: #1E293B;
    appearance: none;
    cursor: pointer;
    transition: all .2s;
}

/* hover */

#tipoProblema:hover {
    border-color: #3B82F6;
}

/* focus */

#tipoProblema:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* flecha personalizada */

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 5.646a.5.5 0 0 1 .708 0L8 11.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}