@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- 1. CONFIGURACIÓN GENERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    color: #333;
    overflow-x: hidden;
    width: 100%;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #007bff;
}

.content {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    width: 100%;
}

/* --- 2. BARRA DE NAVEGACIÓN --- */
.navbar {
    position: fixed;
    z-index: 1000;
    width: 100%;
    padding: 15px 0;
    transition: all 0.4s ease;
}

.navbar.sticky {
    padding: 10px 0;
    background: #111111;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.navbar .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .brand img {
    width: 150px;
    max-width: 100%;
    height: auto;
    display: block;
}

.navbar .menu-list {
    display: flex;
    list-style: none;
    align-items: center;
}

.navbar .menu-list li a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-left: 25px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar .menu-list li a:hover {
    color: #007bff;
}

.icon {
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: none;
}

.cancel-btn {
    position: absolute;
    top: 20px;
    right: 25px;
}

/* --- 3. HERO SLIDER --- */
.fondoa {
    background: #000;
    position: relative;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    will-change: opacity;
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: overlay;
    animation: heroFade 20s ease-in-out infinite;
    padding: 0 20px;
}

.slide-bg-1 { background-image: url('IMAGENES/1234.jpg'); animation-delay: 0s; }
.slide-bg-2 { background-image: url('IMAGENES/4.jpeg'); animation-delay: 4s; }
.slide-bg-3 { background-image: url('IMAGENES/ee.jpeg'); animation-delay: 8s; }
.slide-bg-4 { background-image: url('IMAGENES/5637.jpeg'); animation-delay: 12s; }
.slide-bg-5 { background-image: url('IMAGENES/444.jpeg'); animation-delay: 16s; }

@keyframes heroFade {
    0% { opacity: 0; }
    5% { opacity: 1; }
    20% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}

header .textos {
    width: 100%;
    max-width: 850px;
    text-align: center;
    color: #fff;
    z-index: 2;
}

header .titulo {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

header .subtitulo {
    font-size: clamp(14px, 2.5vw, 20px);
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

/* --- BANDA DE ACCIÓN SLIDER --- */
.action-ribbon-white {
    background-color: #ffffff;
    padding: 18px 20px;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 10;
    width: 100%;
}

.ribbon-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.ribbon-slider {
    position: relative;
    height: 35px;
    flex: 1;
    min-width: 260px;
    overflow: hidden;
}

.ribbon-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #222222;
    font-size: 14px;
    opacity: 0;
    will-change: opacity, transform;
    animation: textFade 12s ease-in-out infinite;
}

.ribbon-icon {
    font-size: 22px;
    color: #007bff;
    flex-shrink: 0;
}

.slide-txt-1 { animation-delay: 0s; }
.slide-txt-2 { animation-delay: 4s; }
.slide-txt-3 { animation-delay: 8s; }

@keyframes textFade {
    0% { opacity: 0; transform: translateY(6px); }
    8% { opacity: 1; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(0); }
    38% { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 0; }
}

.btn-ribbon-blue {
    background-color: #007bff;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.25);
    white-space: nowrap;
}

.btn-ribbon-blue:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.35);
    color: #ffffff;
}

/* --- 4. SECCIÓN QUIÉNES SOMOS --- */
.nosotros-hero {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(to right, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0.6) 100%), url('IMAGENES/ddd.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.overlay-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    justify-content: flex-end;
}

.nosotros-card {
    background: rgba(255, 255, 255, 0.92);
    padding: 40px;
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    min-height: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-left: 6px solid #007bff;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.about-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    transform: translateX(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-slide.active,
.about-slide:first-child {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.about-slider:has(.active) .about-slide:not(.active) {
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
}

.about-slide h2 {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
}

.about-slide p {
    font-size: 14px;
    line-height: 1.6;
    color: #222;
    text-align: justify;
    margin-bottom: 12px;
}

.about-slide p:last-child {
    margin-bottom: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.slider-btn:hover {
    background: #007bff;
    color: #ffffff;
}

.prev-btn { left: 8px; }
.next-btn { right: 8px; }

/* --- 5. SECCIÓN SERVICIOS --- */
.nuestros {
    background: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

.titulo-seccion {
    font-size: clamp(26px, 4vw, 36px);
    margin-bottom: 15px;
    font-weight: 700;
    color: #0f172a;
}

.subtitulo-seccion {
    max-width: 800px;
    margin: 0 auto 45px auto;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.timeline-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
    text-align: left;
}

.etapa-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.etapa-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 25px rgba(0, 123, 255, 0.15);
}

.etapa-image-header {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
}

.etapa-image-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.etapa-card:hover .etapa-image-header img {
    transform: scale(1.08);
}

.etapa-num {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    background: #007bff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.etapa-content {
    padding: 22px 20px 10px 20px;
}

.etapa-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.etapa-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 16px;
}

.etapa-list {
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
}

.etapa-list li {
    font-size: 13px;
    color: #334155;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.etapa-list li i {
    color: #007bff;
    font-size: 11px;
    margin-top: 3px;
    flex-shrink: 0;
}

.etapa-footer {
    padding: 0 20px 22px 20px;
    margin-top: auto;
}

.btn-etapa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 15px;
    background-color: #f1f5f9;
    color: #007bff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-etapa:hover {
    background-color: #007bff;
    color: #ffffff;
}

@media (max-width: 768px) {
    .timeline-servicios {
        grid-template-columns: 1fr;
    }
}

/* --- 6. SECCIÓN CONTACTO --- */
.contacto {
    position: relative;
    padding: 70px 20px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('IMAGENES/44.jpeg') center/cover no-repeat;
}

.contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('IMAGENES/cc.jpg') center/cover no-repeat;
    z-index: 1;
    animation: fadeContacto 12s infinite ease-in-out;
}

@keyframes fadeContacto {
    0%, 10% { opacity: 0; }
    40%, 60% { opacity: 1; }
    90%, 100% { opacity: 0; }
}

.contacto .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    width: 100%;
}

.box-info { color: #fff; }

.box-info h1 {
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 20px;
}

.data p {
    font-size: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    word-break: break-word;
}

.data p i {
    color: #007bff;
    margin-right: 12px;
    font-size: 18px;
    flex-shrink: 0;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-box {
    position: relative;
}

.input-box input, .input-box textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    color: #fff;
    outline: none;
}

.input-box textarea {
    height: 120px;
    resize: none;
}

.input-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

form button {
    padding: 12px;
    background: #007bff;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: #0056b3;
}

/* --- 7. BENEFICIOS BAR --- */
.beneficios-bar {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 3px solid #007bff;
    padding: 40px 20px;
}

.beneficios-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.beneficio-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.beneficio-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.beneficio-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.beneficio-info p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* --- 8. FOOTER Y FLOTANTE --- */
.footer {
    background: #111;
    color: #aaa;
    padding: 50px 0 20px;
}

.footer .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 17px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover { color: #fff; }

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-right: 8px;
}

.float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 26px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
}

.my-float { margin-top: 12px; }

/* --- 9. PRELOADER RESPONSIVO --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

.logo-animado {
    position: relative;
    width: clamp(140px, 30vw, 220px);
    display: flex;
    justify-content: center;
}

.logo-fondo {
    width: 100%;
    height: auto;
    opacity: 0.15;
    filter: grayscale(100%);
}

.logo-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    clip-path: inset(100% 0 0 0);
    animation: cargarRayo 2s ease-in-out infinite;
}

@keyframes cargarRayo {
    0% { clip-path: inset(100% 0 0 0); }
    50% { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(100% 0 0 0); }
}

/* --- 10. MEDIA QUERIES (RESPONSIVE) --- */

@media (max-width: 992px) {
    .nosotros-hero {
        min-height: auto;
        padding: 60px 0;
    }

    .overlay-container {
        justify-content: center;
    }

    .nosotros-card {
        padding: 30px;
        max-width: 100%;
        min-height: 380px;
    }

    .beneficios-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .icon {
        display: block;
    }

    .navbar .menu-list {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 100%;
        max-width: 280px;
        background: #111111;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }

    .navbar .menu-list.active {
        left: 0;
        opacity: 1;
        pointer-events: auto;
    }

    .navbar .menu-list li {
        margin: 15px 0;
    }

    .navbar .menu-list li a {
        margin-left: 0;
        font-size: 18px;
    }

    .ribbon-container {
        flex-direction: column;
        text-align: center;
    }

    .ribbon-slider {
        height: 45px;
        width: 100%;
    }

    .ribbon-slide {
        justify-content: center;
        text-align: center;
    }

    .btn-ribbon-blue {
        width: 100%;
    }

    .timeline-servicios {
        grid-template-columns: 1fr;
    }

    .servicios-tags-container {
        margin-top: 35px;
    }

    .contacto .container {
        grid-template-columns: 1fr;
    }

    .beneficios-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .nosotros-card {
        padding: 20px 15px;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .footer-col {
        min-width: 100%;
    }
}