/* ================= HERO / CAROUSEL ================= */
.hero {
    min-height: 81vh; /* Asegura un alto mínimo igual al de inicio */
    height: auto;     /* Permite crecer si el contenido es mayor */
    position: relative;
    overflow: hidden;
    display: flex;
}

.slides {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 30, 55, 0.75);
}

.hero-content {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 60px 20px 180px 20px; /* Margen inferior extra para no solapar los controles (dots) */
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* ================= CONTROLES ================= */
.hero-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    font-size: 30px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 12px 18px;
}

.prev { left: 20px; }
.next { right: 20px; }

/* ================= DOTS ================= */
.hero-dots {
    position: absolute;
    bottom: 160px; /* ⬅️ SUBE los dots hasta la zona verde */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    z-index: 10;
}


.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

/* ================= CURVA HERO ================= */
.hero-curve {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px;
    background: transparent; /* clave para NO espacio blanco */
    pointer-events: none;
}

/* ================= BIENVENIDA EMPRESA ================= */

.empresa-intro-home {
    background: #ffffff;
    padding: 20px 40px 40px 40px
}

.empresa-intro-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* TEXTO */
.empresa-info {
    text-align: left;
}

.empresa-info .empresa-tag {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 10px;
}

.empresa-info h2 {
    font-size: 2.2rem;
    color: #0b3a63;
    margin-bottom: 20px;
}

.empresa-info p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 25px;
    text-align: justify;
}

/* LISTA */
.empresa-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    width: fit-content;
    /* Organizamos la lista hacia abajo */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.empresa-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0;
    color: #444; /* Lo alineamos con el color del párrafo */
    line-height: 1.6;
    text-align: left;
}

.empresa-list li strong {
    color: #0b3a63;
    font-weight: 700; /* Le damos más peso al título del pilar */
}

.empresa-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #00bfc6;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .empresa-intro-container {
        grid-template-columns: 1fr;
    }

    .empresa-video iframe,
    .empresa-video video {
        height: 260px;
    }
}
.empresa-video {
    position: relative;
    border-radius: 14px;
}

/* IFRAME / VIDEO */
.empresa-video iframe,
.empresa-video video {
    width: 100%;
    height: 340px;
    border-radius: 14px;
    display: block;
    object-fit: cover;
}

/* Overlay del video (solo visual) */
.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 58, 99, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.empresa-video:hover .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.video-overlay span {
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-weight: 600;
}


/* ================= SERVICIOS MODERNOS ================= */

.services-modern {
    padding-top: 40px;
    background: #ffffff;
}

.services-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-header span {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #666;
}

.services-header h2 {
    font-size: 2.6rem;
    color: #0b3a63;
    margin-top: 10px;
}

.services-grid {
    max-width: 1300px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

/* CARD */
.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    flex: 0 1 300px;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.service-card:hover img {
    transform: scale(1.08);
}

/* INFO */
.service-info {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 8px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-info h3 {
    font-size: 1rem;
    color: #0b3a63;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.arrow {
    background: #0b3a63;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Overlay azul corporativo */
.values-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(5, 30, 55, 0.92) 0%,
        rgba(5, 30, 55, 0.85) 40%,
        rgba(5, 30, 55, 0.65) 70%,
        rgba(5, 30, 55, 0.5) 100%
    );
}

/* Contenido */
.values-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}


/* ITEM */
.value-item h3 {
    font-size: 2.4rem;
    margin: 15px 0 5px;
    font-weight: 700;
}

.value-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ICONO */
.value-icon {
    width: 90px;
    height: 90px;
    margin: auto;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon img {
    width: 42px;
    height: 42px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .values-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 500px) {
    .values-container {
        grid-template-columns: 1fr;
    }
}
/* ================= NUESTROS PROCESOS ================= */

.processes-section {
    background: #ffffff;
    padding: 40px 40px;
}

.processes-container {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}


/* SLIDER IMAGENES PROCESOS */

.processes-image {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 450px; 
}

.process-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.process-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

/* IMAGEN ACTIVA */
.process-slider img.active {
    opacity: 1;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 4s ease;
}

.processes-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* BADGE */
.processes-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #0b3a63;
    color: #fff;
    padding: 35px 40px;
    border-top-left-radius: 80px;
}

.processes-badge span {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
}

/* CONTENIDO */
.processes-content h2 {
    font-size: 2.6rem;
    color: #0b3a63;
    margin-bottom: 30px;
}

.processes-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
}

.producto-categorias-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-categoria {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f4f7fa;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-categoria:hover {
    background: #0b3a63;
    border-color: #0b3a63;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(11, 58, 99, 0.15);
}

.btn-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b3a63;
    transition: color 0.3s ease;
}

.btn-categoria:hover .btn-text {
    color: #fff;
}

.btn-categoria .arrow {
    font-size: 1.2rem;
    color: #0b3a63;
    background: rgba(11, 58, 99, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-categoria:hover .arrow {
    background: #00bfc6;
    color: #fff;
    transform: translateX(4px); /* Mueve el círculo de la flecha ligeramente a la derecha */
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .processes-container {
        grid-template-columns: 1fr;
    }

    .processes-badge {
        padding: 25px 30px;
    }
}
/* ===== PARA CELULAR ===== */
@media (max-width: 768px) {

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}