:root {
    --azul-principal: #0B3D77;
    --naranja-acento: #F0A24D;
    --azul-neutro: #1E2A38;
    --gris-fondo: #F4F6F8;
    --texto-oscuro: #333333;
}

/* ===== ESTILOS GLOBALES ===== */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--gris-fondo);
}

/* ===== NAVBAR FIJO ===== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 40px;
}

/* Logo exclusivamente del menú */

.navbar .logo {
    margin-left: 20px;
}

.navbar .logo img {
    height: 50px;
    width: auto;
}

/* Menú centrado */

.nav-menu {
    list-style: none;
    display: flex;
    gap: 45px;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--texto-oscuro);
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--naranja-acento);
    transform: translateY(-3px);
}

/* Bloque Mi Cuenta alineado a la derecha */

.user-access {
    margin-right: 20px;
    text-align: right;
}

/* Botón Mi Cuenta */

.btn-account {
    background: var(--naranja-acento);
    color: var(--azul-principal);
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-account:hover {
    transform: scale(1.05);
}

/* Menú desplegable de cuenta */

.account-menu {
    position: relative;
    display: inline-block;
}

.account-dropdown {
    position: absolute;
    right: 0;
    top: 45px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    display: none;
    min-width: 190px;
    overflow: hidden;
}

.account-dropdown a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--azul-neutro);
    transition: background 0.3s ease;
}

.account-dropdown a:hover {
    background: var(--naranja-acento);
    color: white;
}

.account-menu:hover .account-dropdown {
    display: block;
}

/* ===== HERO ===== */

.hero {
    width: 100%;
    height: 90vh;
    margin-top: 90px;
    background-image: url("../img/banner.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
}

.hero-container {
    margin: auto;
    text-align: center;
    max-width: 1000px;
    padding: 80px 40px;
    background: rgba(30, 42, 56, 0.9);
    border-radius: 24px;
    animation: heroFade 1.2s ease;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 25px;
    color: white;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 35px;
    color: #d0d7e2;
}

/* Botones CTA del Hero */

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.btn-primary {
    background: var(--azul-principal);
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--naranja-acento);
    color: var(--azul-neutro);
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-3px);
}

/* ===== SECCIÓN SERVICIOS ===== */

.services-section {
    padding: 100px 40px;
    background: #ffffff;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.services-intro {
    text-align: center;
    font-size: 18px;
    margin-bottom: 40px;
    color: #555555;
}

/* Tarjetas de servicios */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom: 5px solid var(--naranja-acento);
}

/* ===== VALORES CORPORATIVOS CENTRADOS ===== */

.values-section {
    background: #ffffff;
    padding: 45px;
    border-radius: 22px;
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
}

.values-section h2 {
    margin-bottom: 25px;
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}

.values-list li {
    font-size: 18px;
    margin: 10px 0;
    color: var(--azul-neutro);
}

/* ===== CERTIFICACIONES ===== */

.cert-section {
    padding: 80px 40px;
    background: #F9FBFD;
}

.cert-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.cert-description {
    text-align: center;
    max-width: 950px;
    margin: 0 auto 40px auto;
}

.certificaciones-bar {
    display: flex;
    justify-content: center;
    gap: 35px;
    padding: 25px 15px;
}

.certificaciones-bar img {
    height: 38px;
    padding: 12px 18px;
    background: #f4f6f8;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.certificaciones-bar img:hover {
    transform: scale(1.08);
    background: #FFE6CC;
}

/* ===== FOOTER ===== */

.footer-section {
    background: var(--azul-principal);
    color: white;
    padding: 60px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-box h3 {
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--naranja-acento);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .navbar-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav-menu {
        flex-direction: column;
        gap: 20px;
        margin-top: 15px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .values-section {
        margin: 20px;
    }
}
/* ===== TARJETA DE PRESENTACIÓN BAJO EL BANNER ===== */

.presentation-section {
    padding: 60px 20px;
    background: #ffffff;
}

.presentation-container {
    max-width: 1100px;
    margin: 0 auto;
}

.presentation-card {
    background: #0B3D77;
    color: white;
    padding: 40px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    animation: cardAppear 0.8s ease;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.presentation-card h1 {
    margin-top: 0;
    margin-bottom: 20px;
}

.presentation-card p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Botones dentro de la tarjeta */

.presentation-cta {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.presentation-cta a {
    text-decoration: none;
}

.presentation-cta .btn-primary,
.presentation-cta .btn-secondary {
    padding: 14px 34px;
}
/* ===== ANIMACIÓN PARA SECCIÓN PRESENTACIÓN ===== */

.presentation-card {
    background: #0B3D77;
    color: white;
    padding: 40px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);

    /* Aquí está el ajuste */
    animation: presentationFade 1s ease forwards;
}

/* Nueva animación */
@keyframes presentationFade {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== TARJETA DE SERVICIO CON IMAGEN ===== */

.service-with-image {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-image {
    text-align: center;
    padding: 15px;
    background: #E8EEF5;
}

.service-image img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 12px;
}

.service-content {
    padding: 20px;
}

/* Animación al aparecer */
.service-with-image {
    animation: serviceAppear 0.8s ease;
}

@keyframes serviceAppear {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover sin afectar otras cards */
.service-with-image:hover {
    transform: translateY(-6px);
}

/* ===== ENCABEZADO SECCIÓN SERVICIOS ===== */

.services-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(
        to right,
        var(--azul-principal),
        var(--azul-neutro)
    );
    animation: headerServicios 1s ease;
}

.services-header h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 15px;
}

.services-header .services-intro {
    color: #e6ecf5;
    font-size: 18px;
    line-height: 1.7;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes headerServicios {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Efecto hover de profesionalidad */

.services-header:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    transition: all 0.4s ease;
}

/* ===== ESTILOS SERVICIO CONECTIVIDAD ===== */

.connectivity-card .service-image {
    text-align: center;
    margin-bottom: 15px;
    animation: imgConectividad 0.9s ease;
}

.connectivity-card .service-image img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 16px;
    opacity: 0.95;
    transition: all 0.3s ease;
}

@keyframes imgConectividad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.connectivity-card .service-image img:hover {
    opacity: 1;
    transform: scale(1.03);
}

/* Efecto visual adicional */

.connectivity-card:hover {
    border-top: 6px solid var(--naranja-acento);
}
.connectivity-card ul li {
    position: relative;
    padding-left: 18px;
}

.connectivity-card ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--azul-principal);
}

/* ===== MATRIX DE SERVICIOS ===== */

.services-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.matrix-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    animation: matrixEntry 0.8s ease;
}

.matrix-card img {
    width: 60%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

@keyframes matrixEntry {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.matrix-card:hover {
    transform: translateY(-8px);
    border-bottom: 6px solid var(--naranja-acento);
}

@media (max-width: 768px) {
    .services-matrix {
        grid-template-columns: 1fr;
    }
}
/* ===== SECCIÓN ACERCA DE NOSOTROS ===== */

.nosotros-section {
    padding: 100px 40px;
    background: #ffffff;
    width: 100%;
}

/* Encabezado */

.nosotros-header {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 50px auto;
    animation: nosotrosHeaderFade 1s ease;
}

.nosotros-header h2 {
    font-size: 34px;
    margin-bottom: 20px;
    color: var(--azul-principal);
}

.nosotros-intro {
    font-size: 18px;
    line-height: 1.7;
    color: var(--azul-neutro);
}

/* Animación encabezado */

@keyframes nosotrosHeaderFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid de tarjetas */

.nosotros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Tarjetas */

.nosotros-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 22px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    text-align: center;
    transition: all 0.4s ease;
    animation: nosotrosCardFade 0.9s ease;
}

.nosotros-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 26px rgba(0,0,0,0.12);
    border-bottom: 6px solid var(--naranja-acento);
}

/* Animación tarjetas */

@keyframes nosotrosCardFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Iconos */

.card-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

/* Títulos internos */

.nosotros-card h3 {
    margin-bottom: 15px;
    color: var(--azul-principal);
}

/* Texto */

.nosotros-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--texto-oscuro);
}

/* Lista de valores */

.values-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.values-list li {
    font-size: 16px;
    margin: 6px 0;
    color: var(--azul-neutro);
}

/* Responsive */

@media (max-width: 768px) {
    .nosotros-section {
        padding: 70px 20px;
    }

    .nosotros-header h2 {
        font-size: 28px;
    }
}

/* ===== IMAGEN SECCIÓN ACERCA DE NOSOTROS ===== */

/* ===== FIX DEFINITIVO CENTRADO IMAGEN NOSOTROS ===== */

.nosotros-layout {
    display: block; /* mata el grid */
}

/* Contenedor imagen */
.nosotros-image {
    display: flex;
    justify-content: center;
    margin: 0 auto 60px auto;
}

/* Imagen */
.nosotros-image img {
    max-width: 520px;
    width: 100%;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}


/* Responsive */

@media (max-width: 900px) {
    .nosotros-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .nosotros-image {
        max-width: 500%;
        margin: 0 auto;
    }
}
/* ===== CERTIFICACIONES EN ACERCA DE NOSOTROS ===== */

.nosotros-certificaciones {
    margin-top: 80px;
    text-align: center;
    animation: certFadeUp 1s ease;
}

.nosotros-certificaciones h3 {
    font-size: 26px;
    color: var(--azul-principal);
    margin-bottom: 15px;
}

.cert-text {
    max-width: 900px;
    margin: 0 auto 35px auto;
    font-size: 17px;
    line-height: 1.6;
    color: var(--azul-neutro);
}

/* Logos */

.cert-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
}

.cert-logos img {
    height: 80px;              /* ⬅️ TAMAÑO IDEAL */
    padding: 18px 26px;
    background: #f4f6f8;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    transition: all 0.35s ease;
    opacity: 0.95;
}


.cert-logos img:hover {
    transform: scale(1.1);
    opacity: 1;
    background: #FFE6CC;
}

/* Animación */

@keyframes certFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */

@media (max-width: 1000px) {
    .cert-logos {
        gap: 20px;
    }

.cert-logos img {
    height: 80px;              /* ⬅️ TAMAÑO IDEAL */
    padding: 18px 26px;
    background: #f4f6f8;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    transition: all 0.35s ease;
    opacity: 0.95;
}

.cert-logos img:hover {
    transform: scale(1.12);
    opacity: 1;
    background: #FFE6CC;
}

}
@media (max-width: 768px) {
    .cert-logos img {
        height: 48px;   /* no tan grandes en móvil */
        padding: 12px 18px;
    }
}

/* ===== CONTACTO ===== */

.contact-section {
    padding: 100px 20px;
    background: #F9FBFD;
    text-align: center;
}

.contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
}

.form-group {
    margin-bottom: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.btn-submit {
    margin-top: 20px;
    padding: 14px 40px;
    background: var(--azul-principal);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--naranja-acento);
    color: #1E2A38;
}
