/* -------------------------------------------------------
   RESET BÁSICO
------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* -------------------------------------------------------
   TIPOGRAFÍA Y BASE GLOBAL
------------------------------------------------------- */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #222;
    background-image: url('img/fondo-evh.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* -------------------------------------------------------
   CONTENEDORES
------------------------------------------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* -------------------------------------------------------
   BARRA SUPERIOR
------------------------------------------------------- */
.header {
    background: transparent !important;
    border-bottom: none !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 16px;
    z-index: 999;
}

.top-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 6px 20px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.9rem;
}

/* -------------------------------------------------------
   BOTONES
------------------------------------------------------- */
.btn {
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.btn-yellow {
    background: #d4a017;
    color: #fff;
}

.btn-dark {
    background: #222;
    color: #fff;
}

/* -------------------------------------------------------
   SECCIONES
------------------------------------------------------- */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #ffd54f;
}

.section-subtitle {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* -------------------------------------------------------
   INPUTS Y FORMULARIOS
------------------------------------------------------- */
input,
textarea {
    padding: 12px;
    border: 1px solid #bbb;
    border-radius: 5px;
    width: 100%;
    font-size: 1rem;
    background: #fff;
    color: #222;
}

textarea {
    height: 140px;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: #d4a017;
    outline: none;
    box-shadow: 0 0 4px rgba(212, 160, 23, 0.4);
}

/* -------------------------------------------------------
   FIX PARA ANCLAS
------------------------------------------------------- */
#contacto {
    scroll-margin-top: 140px;
}

/* -------------------------------------------------------
   INTRODUCCIÓN
------------------------------------------------------- */
.intro-tecnicas {
    padding-top: 40px;
    padding-bottom: 20px;
}

/* -------------------------------------------------------
   TARJETAS DE CAPACITACIONES
------------------------------------------------------- */
.capacitaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.cap-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    color: #222;
}

.cap-card a.btn {
    margin-top: auto;
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

/* -------------------------------------------------------
   SLIDER HERO
------------------------------------------------------- */
.hero-slider {
    position: relative;
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* -------------------------------------------------------
   HERO TEXT — CORREGIDO
------------------------------------------------------- */
.evh-hero-text {
    position: absolute;
    top: 170px !important; /* antes 140px */
    left: 40px;
    max-width: 650px;
    color: #fff;
    z-index: 900;
    pointer-events: none;
}

.evh-hero-text h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: 0 0 12px rgba(0,0,0,0.55);
}

.evh-hero-text p {
    font-size: 20px;
    line-height: 1.35;
    text-shadow: 0 0 10px rgba(0,0,0,0.45);
}

/* MOBILE — HERO TEXT */
@media (max-width: 768px) {
    .evh-hero-text {
        top: 130px !important; /* antes 100px */
        left: 20px !important;
        max-width: 90% !important;
    }

    .evh-hero-text h1 {
        font-size: 28px !important;
    }

    .evh-hero-text p {
        font-size: 16px !important;
    }
}

/* -------------------------------------------------------
   TEXTO INSTITUCIONAL
------------------------------------------------------- */
.institucional-texto,
.institucional-texto p,
.institucional-texto h1,
.institucional-texto h2,
.institucional-texto h3 {
    color: #000 !important;
    text-shadow: none !important;
}

/* -------------------------------------------------------
   BLOQUES MODERNOS EVH
------------------------------------------------------- */
.evh-line-blocks {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 60px 0;
}

.evh-line-item {
    display: flex;
    gap: 20px;
}

.evh-line {
    width: 6px;
    height: 60px;
    background: #d4a017;
    border-radius: 4px;
}

.evh-line-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #222;
}

.evh-line-item p {
    font-size: 16px;
    color: #444;
}

/* MOBILE */
@media (max-width: 768px) {
    .evh-line-item {
        flex-direction: row;
        gap: 16px;
    }
    .evh-line {
        height: 50px;
    }
}

/* -------------------------------------------------------
   FLECHA DE SCROLL
------------------------------------------------------- */
.evh-scroll-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    color: #fff;
    opacity: 0.7;
    animation: evhArrow 1.8s infinite ease-in-out;
    z-index: 900;
}

@keyframes evhArrow {
    0% { transform: translate(-50%, 0); opacity: 0.7; }
    50% { transform: translate(-50%, 10px); opacity: 1; }
    100% { transform: translate(-50%, 0); opacity: 0.7; }
}

/* -------------------------------------------------------
   BANNERS LATERALES
------------------------------------------------------- */
.evh-banner-lateral {
    position: absolute;
    top: 170px; /* acompaña el nuevo texto */
    right: 20px;
    width: 360px;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.evh-banner-item {
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 18px 22px;
    border-left: 5px solid #d4a017;
    font-size: 18px;
    font-weight: 500;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    margin-bottom: 12px;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.6s ease;
}

.evh-banner-item.active {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .evh-banner-lateral,
    .evh-scroll-arrow {
        display: none;
    }
}

/* -------------------------------------------------------
   SECCIONES DESTACADAS EVH
------------------------------------------------------- */
.evh-servicio-destacado {
    background: #ffffff;
    padding: 60px 0;
}

.evh-servicio-destacado::before {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: #d4a017;
    margin-bottom: 50px;
    opacity: 0.8;
}

.evh-servicio-destacado-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: stretch;
    gap: 40px;
    flex-wrap: wrap;
}

.evh-servicio-texto {
    flex: 1;
    min-width: 280px;
}

.evh-servicio-texto h2 {
    font-size: 28px;
    font-weight: 700;
    color: #d4a017;
    margin-bottom: 12px;
}

.evh-servicio-texto p {
    font-size: 17px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.evh-servicio-btn {
    display: inline-block;
    background: #b30000;
    color: #fff;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
    margin-top: 18px;
}

.evh-servicio-btn:hover {
    background: #8a0000;
}

/* -------------------------------------------------------
   CUADROS CORPORATIVOS EVH (SIN FOTOS)
------------------------------------------------------- */
.evh-servicio-cuadro {
    flex: 1;
    min-width: 280px;
    background: #0f6b00;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    min-height: 240px;
}

.evh-cuadro-azul {
    background: #004a8f;
}

.evh-cuadro-gris {
    background: #4a4a4a;
}

/* -------------------------------------------------------
   RESPONSIVE
------------------------------------------------------- */
@media (max-width: 768px) {

    .evh-servicio-destacado-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .evh-servicio-cuadro {
        min-height: 200px;
        padding: 16px;
    }
}

@media (max-width: 768px) {

    .evh-servicio-cuadro ul {
        margin: 10px 0 !important;
        padding-left: 18px !important;
    }

    .evh-servicio-cuadro ul li {
        margin-bottom: 6px !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 768px) {

    .evh-servicio-cuadro {
        text-align: left !important;
    }

    .evh-servicio-cuadro ul {
        margin: 10px 0 !important;
        padding-left: 18px !important;
    }

    .evh-servicio-cuadro ul li {
        margin-bottom: 6px !important;
        line-height: 1.35 !important;
    }
}

.btn-curso {
    display: inline-block;
    background: #b30000;
    color: #fff;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
    margin-top: 18px;
    text-align: center;
}

.btn-curso:hover {
    background: #8a0000;
}

.btn-inscripcion-pro {
    display: inline-block;
    background: #b30000;
    color: #fff !important;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none !important;
    transition: 0.25s ease;
    margin-top: 20px;
    text-align: center;
}

.btn-inscripcion-pro:hover {
    background: #8a0000;
}

.sidebar-course-card {
    position: fixed;
    right: 30px;
    top: 180px;
    width: 200px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    padding: 10px;
    animation: fadeCard 0.6s ease;
    z-index: 9000;
}

.sidebar-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 8px;
}

.sidebar-course-card h3 {
    font-size: 16px;
    margin: 0 0 4px 0;
    font-weight: 700;
    color: #003366;
}

.sidebar-course-card p {
    font-size: 13px;
    margin: 0 0 8px 0;
    color: #333;
}

.sidebar-btn {
    display: inline-block;
    background: #ffd54f;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    color: #000;
    font-size: 13px;
}

/* -------------------------------------------------------
   HERO FULLSCREEN
------------------------------------------------------- */
.hero,
.hero-simple {
    position: relative;
    height: 100vh;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

/* VIDEO DE FONDO */
.evh-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.evh-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -------------------------------------------------------
   MENÚ — COLOR AZUL (SIN LÍNEA)
------------------------------------------------------- */
.header-nav-full {
    padding-bottom: 6px; /* sin línea */
}

.header-nav-full .nav-item,
.header-nav-full .dropbtn {
    color: #005bbb !important; /* azul EVH */
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease-in-out;
}

.header-nav-full .nav-item:hover,
.header-nav-full .dropbtn:hover {
    color: #0077ff !important; /* azul más brillante */
}
.evh-nosotros-box {
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}
/* -------------------------------------------------------
   SECCIÓN NOSOTROS — BLOQUE ESTÉTICO PREMIUM EVH
------------------------------------------------------- */
.evh-nosotros-box {
    background: rgba(255,255,255,0.92); /* fondo suave */
    padding: 35px;
    border-radius: 14px;
    border-left: 5px solid #d4a017; /* línea dorada EVH */
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    backdrop-filter: blur(4px);
    margin: 40px 0;
}

/* Título “Fundada en 2015” */
.evh-nosotros-box h2,
.evh-nosotros-box h3 {
    margin-bottom: 12px;
    font-weight: 700;
    color: #222;
    border-left: 4px solid #d4a017;
    padding-left: 12px;
}

/* Párrafos */
.evh-nosotros-box p {
    font-size: 17px;
    line-height: 1.55;
    color: #333;
    margin-bottom: 16px;
}

/* Bloque rojo “Compromiso con la industria” */
.evh-nosotros-destacado {
    background: #b30000;
    color: #fff;
    padding: 22px;
    border-radius: 10px;
    margin-top: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    border-left: 5px solid #ffd54f; /* dorado claro */
}

/* Responsive */
@media (max-width: 768px) {
    .evh-nosotros-box {
        padding: 24px !important;
        border-radius: 10px !important;
    }

    .evh-nosotros-box p {
        font-size: 16px !important;
    }

    .evh-nosotros-destacado {
        padding: 18px !important;
    }
}
/* -------------------------------------------------------
   AJUSTE DE TARJETAS DE SERVICIOS EVH — MÁS CONTENIDAS
------------------------------------------------------- */
.evh-servicio-cuadro {
    flex: 0 0 320px;        /* ancho fijo y NO se estira */
    padding: 18px;          /* más compacta */
    min-height: auto;       /* elimina altura mínima */
    height: auto;           /* se adapta al contenido */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Títulos dentro de la tarjeta */
.evh-servicio-cuadro h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Lista más compacta */
.evh-servicio-cuadro ul {
    margin-top: 10px !important;
    line-height: 1.45 !important;
}

.evh-servicio-cuadro ul li {
    margin-bottom: 6px;
    font-size: 14px;
}

/* MOBILE */
@media (max-width: 768px) {
    .evh-servicio-cuadro {
        flex: 1 !important;   /* en mobile sí se estira */
        width: 100%;
        padding: 16px;
    }
}
/* -------------------------------------------------------
   SOLO CENTRAR TITULO DE TARJETAS EVH
------------------------------------------------------- */
.evh-servicio-cuadro h3 {
    text-align: center;
    width: 100%;
}
/* -------------------------------------------------------
   BLOQUE CORPORATIVO EVH — ESTILO PREMIUM
------------------------------------------------------- */
.evh-bloque-corporativo {
    background: #003f7d; /* azul corporativo */
    padding: 60px 0;
    margin: 60px 0;
}

.evh-bloque-corp-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Imagen grande a la izquierda */
.evh-bloque-img {
    flex: 1;
    height: 320px;
   background-image: url('/img/evh-industrial.jpg'); /* ← Cambiá la imagen */
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

/* Texto a la derecha */
.evh-bloque-texto {
    flex: 1;
    color: #fff;
}

.evh-bloque-texto h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 12px;
}

.evh-bloque-texto p {
    font-size: 18px;
    line-height: 1.45;
    margin-bottom: 25px;
    opacity: 0.95;
}

/* Botón */
.evh-bloque-btn {
    display: inline-block;
    background: #ffd54f;
    color: #000;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s ease;
}

.evh-bloque-btn:hover {
    background: #ffeb8a;
}

/* Subtexto */
.evh-bloque-sub {
    margin-top: 20px;
    font-size: 16px;
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
    .evh-bloque-corp-container {
        flex-direction: column;
        text-align: center;
    }

    .evh-bloque-img {
        width: 100%;
        height: 240px;
    }
}