/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}


html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background: #111;
    color: #fff;
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #fff;
    font-size: 0.95rem;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #2a5298;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ================= HERO ================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
}

.hero video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ================= SECCIONES ================= */
section {
    padding: 120px 20px;
}


#titulo_somos {
    text-align: center;
}


.info, .carousel-section, .contact {
    max-width: 900px;
    margin: auto;
}

/* ================= REVEAL ================= */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.dim {
    filter: brightness(0.4);
    opacity: 0.6;
}

/* ================= CARRUSEL ================= */
.carousel {
    position: relative;
    margin-top: 40px;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    width: 100%;
}

/* Items */
.carousel-item {
    min-width: 100%;
    background: #222;
    text-decoration: none;
    color: white;
    position: relative;
}

.carousel-image {
    height: 260px;
    overflow: hidden;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-text {
    padding: 30px;
    font-size: 1.4rem;
    text-align: center;
}

.carousel-item:hover img {
    transform: scale(1.08);
}

/* Botones */
.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    padding: 14px;
    cursor: pointer;
    z-index: 5;
}

.prev { left: 10px; }
.next { right: 10px; }

/* ================= CONTACTO ================= */
.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 14px;
    font-size: 1rem;
    border: none;
}

button {
    padding: 14px;
    background: #2a5298;
    color: white;
    border: none;
    cursor: pointer;
}


/* ============= Ajustes finales ============ */

#titulo_servicios {
    color: #fff;
}


/* ================= VALUE SECTION ================= */
.value-section {
    padding: 100px 20px;
    background-color: rgba(0, 0, 0, 0);
    color: #1b1b3a;
}

/* Header */
.value-header {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.value-header h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.value-header p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
}

/* Grid */
.value-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Card */
.value-card {
    background: #f8f9fd;
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.value-card h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
    font-weight: 700;
}

.value-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 28px;
}

/* Link */
.value-card a {
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: #3b5cff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.value-card a span {
    transition: transform 0.3s ease;
}

.value-card a:hover {
    color: #1f36c7;
    gap: 10px;
}

.value-card a:hover span {
    transform: translateX(4px);
}



/* ================= VIDEO HERO RESPONSIVO ================= */

/* Contenedor del hero */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Video base */
.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Ajuste específico para pantallas pequeñas */
@media (max-width: 768px) {
    .hero {
        height: 100svh; /* mejor soporte móvil */
    }

    .hero video {
        width: auto;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
    }
}

/* Ajuste extra para pantallas muy altas (celulares verticales) */
@media (max-width: 480px) {
    .hero video {
        object-position: center;
    }
}


