﻿/* =====================================================
   INDEX - ESTILO PROFESIONAL OPTIMIZADO
===================================================== */

/* ===============================
   HERO
================================ */

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1f2d3d;
    margin: 0;
}

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 6% 140px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(4,25,30,.28), rgba(4,25,30,.28)), url("../img/principal.jpg") center/cover no-repeat fixed;
}

.hero-info {
    max-width: 760px;
    padding: 45px;
    border-radius: 30px;
    color: #fff;
    display: flex;
    flex-direction: column;
    background: linear-gradient( 135deg, rgba(6,59,70,.30), rgba(10,75,89,.16) );
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
    animation: fadeUp 1s ease;
}

    .hero-info h1 {
        font-size: 52px;
        line-height: 1.1;
        margin-bottom: 18px;
        color: white;
        text-shadow: 0 6px 20px rgba(0,0,0,0.35);
        animation: itemUp 0.7s ease-out 0.25s both;
        margin-bottom: 24px;
    }

        .hero-info h1::after,
        .servicio-texto h2::after,
        .servicio-galeria h2::after {
            content: "";
            display: block;
            width: 90px;
            height: 4px;
            margin-top: 16px;
            border-radius: 20px;
            background: linear-gradient(90deg, #ff4c1e, #ff8b68);
        }

    .hero-info p {
        font-size: 17px;
        line-height: 1.8;
        text-align: justify;
        margin-bottom: 30px;
        max-width: 620px;
    }

/* ===============================
   BADGES
================================ */

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

    .hero-badges span {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 18px;
        border-radius: 50px;
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.10);
        font-size: 15px;
        font-weight: 700;
        transition: .3s ease;
    }

        .hero-badges span:hover {
            transform: translateY(-4px);
            background: rgba(255,255,255,.14);
        }

    .hero-badges i {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: linear-gradient(135deg, #ff4c1e, #ff7a57);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }

/* ===============================
   BOTONES
================================ */

.btn-contacto,
.btn-cta {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    transition: .3s ease;
}

.btn-contacto {
    width: fit-content;
    margin-left: auto;
    padding: 15px 34px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #ff4c1e, #ff6f47);
    box-shadow: 0 12px 28px rgba(255,76,30,.28);
}

    .btn-contacto:hover,
    .btn-cta:hover {
        transform: translateY(-4px);
    }

.btn-cta {
    padding: 13px 26px;
    border-radius: 30px;
    color: #fff;
    background: #ff4c1e;
}

    .btn-cta:hover {
        background: #fff;
        color: #063b46;
    }

/* ===============================
   SECCIONES GENERALES
================================ */

.section {
    padding: 80px 40px;
}

    .section:nth-child(even) {
        background: #fff;
    }

    .section:nth-child(odd) {
        background: #f5f7f8;
    }

.subtitulo-seccion,
.titulo-centro span {
    display: inline-block;
    margin-bottom: 12px;
    color: #ff4c1e;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.titulo-centro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 45px;
}

    .titulo-centro h2 {
        color: #063b46;
        font-size: 42px;
        font-weight: 900;
        line-height: 1.1;
    }

/* ===============================
   RESUMEN EMPRESA
================================ */

.resumen-valor {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.valor-card {
    background: #fff;
    padding: 34px 28px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(6,59,70,.08);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    transition: .3s ease;
}

    .valor-card:hover {
        transform: translateY(-8px);
    }

    .valor-card i {
        width: 72px;
        height: 72px;
        margin-bottom: 18px;
        border-radius: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 34px;
        color: #ff4c1e;
        background: rgba(255,76,30,.12);
    }

    .valor-card h3 {
        color: #063b46;
        margin-bottom: 12px;
        font-size: 22px;
        font-weight: 800;
    }

    .valor-card p {
        color: #555;
        font-size: 16px;
        line-height: 1.8;
        text-align: justify;
    }

/* ===============================
   SERVICIOS
================================ */

.servicios-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 35px;
    align-items: stretch;
}

.servicio-contenido,
.servicio-galeria {
    background: #fff;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid rgba(6,59,70,.08);
    box-shadow: 0 14px 36px rgba(0,0,0,.08);
}

    .servicio-texto h2,
    .servicio-galeria h2 {
        font-size: 38px;
        font-weight: 900;
        color: #063b46;
        margin-bottom: 18px;
    }

.servicio-texto p {
    color: #444;
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 16px;
}

/* ===============================
   SLIDER
================================ */

.slider {
    position: relative;
    width: 100%;
    height: 420px;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

    .slides img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        opacity: 0;
        visibility: hidden;
        transition: .4s ease;
    }

        .slides img.active {
            opacity: 1;
            visibility: visible;
        }
/* ===============================
   BOTONES SLIDER
================================ */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(6,59,70,.85);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: .3s ease;
}

    .slider-btn:hover {
        background: #ff4c1e;
        transform: translateY(-50%) scale(1.08);
    }

    .slider-btn.prev {
        left: 16px;
    }

    .slider-btn.next {
        right: 16px;
    }

/* ===============================
   LISTA SERVICIOS
================================ */

.servicio-lista ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0;
    margin: 0;
}

.servicio-lista li {
    min-height: 72px;
    padding: 14px 12px;
    border-radius: 18px;
    border-left: 4px solid #ff4c1e;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    transition: .3s ease;
}

    .servicio-lista li:hover {
        transform: translateY(-5px);
        background: rgba(255,255,255,.14);
        box-shadow: 0 12px 26px rgba(0,0,0,.18);
    }

    .servicio-lista li i {
        color: #ff4c1e;
        font-size: 16px;
    }

/* ===============================
   PROCESO
================================ */

.proceso {
    background: #fff;
}

.proceso-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.proceso-card {
    background: #f5f7f8;
    padding: 24px 18px;
    border-radius: 18px;
    border-top: 5px solid #ff4c1e;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    transition: .3s ease;
}

    .proceso-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 30px rgba(0,0,0,.12);
    }

    .proceso-card span {
        width: 58px;
        height: 58px;
        margin: 0 auto 14px;
        border-radius: 50%;
        background: linear-gradient(135deg, #063b46, #0b4d5b);
        border-bottom: 4px solid #ff4c1e;
        color: #fff;
        font-size: 22px;
        font-weight: 900;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .proceso-card h3 {
        color: #063b46;
        font-size: 22px;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .proceso-card p {
        color: #444;
        font-size: 16px;
        line-height: 1.8;
        text-align: justify;
    }

/* ===============================
   CTA FINAL
================================ */

.cta-final {
    margin: 30px 40px 60px;
    padding: 32px 36px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    background: radial-gradient(circle at top left, rgba(255,76,30,.18), transparent 30%), linear-gradient(135deg, #052f38, #0b4d5b);
    border-bottom: 5px solid #ff4c1e;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

    .cta-final div {
        flex: 1;
    }

    .cta-final h2 {
        font-size: 38px;
        font-weight: 900;
        margin-bottom: 8px;
    }

    .cta-final p {
        color: #dceff3;
        font-size: 16px;
        line-height: 1.8;
        margin: 0;
    }

/* ===============================
   ANIMACIONES
================================ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1000px) {

    .hero {
        padding: 70px 5% 110px;
        background-attachment: scroll;
    }

    .hero-info {
        text-align: center;
    }

        .hero-info h1::after {
            margin-inline: auto;
        }

        .hero-info p {
            margin-inline: auto;
        }

    .hero-badges {
        justify-content: center;
    }

    .resumen-valor,
    .proceso-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .servicios-layout {
        grid-template-columns: 1fr;
    }

    .servicio-lista ul {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-final {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .section {
        padding: 60px 22px;
    }

    .hero {
        padding: 50px 20px 90px;
    }

    .hero-info {
        padding: 30px 22px;
    }

        .hero-info h1,
        .titulo-centro h2,
        .servicio-texto h2,
        .servicio-galeria h2 {
            font-size: 28px;
        }

        .hero-info p {
            font-size: 15px;
        }

    .btn-contacto {
        margin-inline: auto;
    }

    .servicio-contenido,
    .servicio-galeria {
        padding: 26px 22px;
    }

    .slider {
        height: 300px;
    }

    .proceso-grid,
    .servicio-lista ul {
        grid-template-columns: 1fr;
    }

    .cta-final {
        margin-inline: 20px;
        padding: 26px 22px;
    }

        .cta-final h2 {
            font-size: 30px;
        }
}

@media (max-width: 480px) {

    .hero-info h1 {
        font-size: 24px;
    }

    .hero-badges span {
        width: 100%;
        justify-content: center;
    }

    .resumen-valor {
        grid-template-columns: 1fr;
    }

    .slider {
        height: 220px;
    }

    .valor-card,
    .proceso-card {
        padding: 22px 16px;
    }
}

/* ===============================
   ENSAYOS - TIPOGRAFÍA UNIFICADA
================================ */

.ensayos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    font-family: inherit;
}

.ensayo-item {
    padding: 14px 18px;
    border-left: 3px solid rgba(6, 59, 70, 0.25);
    transition: .3s ease;
    font-family: inherit;
}

    .ensayo-item strong {
        display: block;
        font-size: 22px;
        font-weight: 800;
        color: #063b46;
        margin-bottom: 8px;
        letter-spacing: 0.2px;
    }

    .ensayo-item p {
        margin: 0;
        font-size: 16px;
        line-height: 1.8;
        color: #555;
        text-align: justify;
    }

    .ensayo-item:hover {
        border-left: 3px solid #063b46;
        transform: translateX(6px);
    }

@media (max-width: 768px) {
    .ensayos-grid {
        grid-template-columns: 1fr;
    }
}
