/*1. VARIABLES Y ESTILOS GLOBALES*/
:root {
    --primary-blue: #0019A8;
    --secondary-blue: #5b83f0;
    --dark-bg: #0f172a;
    --text-light: #f1f5f9;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/*2. HEADER Y NAVEGACIÓN*/
header {
    background: #ffffff;
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container .logo-img {
    height: 90px;
    width: auto;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: var(--primary-blue);
}

header nav a.btn {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

header nav a.btn:hover {
    background-color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/*3. SECCIÓN HERO*/
.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e3a8a 100%);
    padding: 90px 5%;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

/*4. TARJETAS Y SERVICIOS (GRIDS)*/
.section-title {
    text-align: center;
    margin: 4rem 0 2rem;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-bg);
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0 5% 5rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-blue);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.icon-img-box {
    height: 60px;
    margin-bottom: 1.5rem;
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.card p {
    font-size: 0.95rem;
    color: #64748b;
}

.card p span:hover {
    color: #00127a;
}

.card-list {
    text-align: left;
    list-style: none;
    width: 100%;
    font-size: 0.85rem;
}

.card-list li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.card-list li.check::before {
    content: '✔️';
    margin-right: 8px;
    font-size: 0.7rem;
}

.card-list li.error::before {
    content: '❌';
    margin-right: 8px;
    font-size: 0.7rem;
}

/*5. SECCIÓN ESPECIALIZADA*/
.specialized-box {
    background-color: #f1f5f9;
    border-radius: 20px;
    padding: 50px 5%;
    margin: 0 5% 4rem;
    text-align: center;
}

.specialized-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.spec-check {
    color: var(--secondary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.spec-text h4 {
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.spec-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/*6. PÁGINA DE CONTACTO Y FORMULARIOS*/
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--dark-bg);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: inherit;
}

.contact-info-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
}

/*7. BOTONES Y BARRA DE CONTACTO*/
.btn {
    background: var(--primary-blue);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #00127a;
    transform: scale(1.05);
    color: white;
}

.btn-hero {
    background: var(--secondary-blue);
}

.contact-bar {
    background: var(--secondary-blue);
    color: white;
    padding: 1.2rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/*8. FOOTER*/
footer {
    background: var(--dark-bg);
    color: white;
    padding: 4rem 5% 2rem;
    margin-top: 2rem;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-info h4 {
    color: var(--secondary-blue);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*9. MEDIA QUERIES (RESPONSIVE)*/
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    nav {
        display: none;
    }

    .logo-img {
        height: 50px;
    }

    .grid,
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (hover: none) {
    header nav a.btn:hover {
        transform: none;
        background-color: var(--primary-blue);
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo-img {
        height: 45px;
    }

    header .btn {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}

/* MENÚ MÓVIL INFERIOR */
.mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        height: 65px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-top: 1px solid #eee;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 1.2rem;
    }

    .nav-item small {
        font-size: 0.7rem;
        font-weight: bold;
        margin-top: 2px;
    }

    .nav-item:hover,
    .nav-item:active {
        color: var(--primary-blue);
    }

    footer {
        padding-bottom: 80px;
    }
}

/* =========================================
   10. AJUSTES FINALES Y REPETICIONES DE CONTROL
   ========================================= */
textarea,
input {
    font-size: 16px !important;
    line-height: 1.5;
}

.card form input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}