/* ===== HERO SECTION 1 ===== */
.hero-section-inicio {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: url('../img/inicio/imgInicio.png') center center / cover no-repeat;
    border-radius: 12px;
    overflow: hidden;
}

.hero-content-inicio {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 20px;
}

.hero-title-inicio {
    color: #ffffff;
    font-size: 2.8rem;
}

.hero-subtitle-inicio {
    color: #ffffff;
    font-weight: 500;
}

.hero-title-inicio,
.hero-subtitle-inicio {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* ===== SECCIÓN 2 VIDEO ===== */
.section-video {
    padding: 40px 0;
}

.section-video .container {
    padding: 40px;
}

.video-frame {
    width: 90%;
    max-width: 1000px;
    padding: 6px;
    border-radius: 20px;
    background: linear-gradient(to right, #d62828, #1d4ed8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.custom-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    background-color: #000;
}

@media (max-width: 400px) {
    .video-frame {
        width: 100%;
        max-width: 100%;
    }

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

/* ===== SECCIÓN ABOUT ===== */
.section-about .container {
    padding: 40px;
}

.section-title {
    color: #d62828;
}

.section-description {
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #555;
}

.about-card {
    background: #f8f4ec;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.about-card img {
    border-radius: 8px;
    max-height: 180px;
    object-fit: cover;
}

/* ===== SECCIÓN CONTACTO ===== */
.section-contact {
    background-color: #f8f4ec;
}

/* Título */
.contact-title {
    color: #b71c1c;
    font-weight: 700;
}

.contact-info {
    text-align: center;
}

.contact-item {
    background: #f8f4ec;
    border-radius: 12px;
    padding: 12px 20px;
    width: 100%;
    max-width: 250px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
}

.contact-item i {
    font-size: 1.2rem;
    color: #d62828;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    color: #d62828;
}

/* Formulario */
.contact-form input,
.contact-form textarea {
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    width: 100%;
    background-color: #f8f4ec;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #d62828;
    box-shadow: 0 0 8px rgba(214, 40, 40, 0.2);
}

.contact-form button {
    border-radius: 12px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(29, 78, 216, 0.25);
}

/* movil */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 30px;
    }

    .contact-item {
        max-width: 45%;
        justify-content: center;
    }
}


/* ========= SERVICIOS  ========= */

.servicios-hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 80px 20px;
}

.titulo-servicios {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitulo-servicios {
    font-size: 18px;
    opacity: .9;
}

.servicios-section {

    padding: 100px 0;

    background-color: white;

}

.servicio-card {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 90px;

    padding: 40px;

    border-radius: 25px;

    background: linear-gradient(145deg,
            #ffffff,
            #d0e1f3);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.05);

    transition: all .35s ease;
    position: relative;
    overflow: hidden;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.15);
}

.servicio-card.reverse {
    flex-direction: row-reverse;
}

.servicio-img img {
    width: 100%;
    max-width: 420px;

    border-radius: 20px;

    transition: transform .5s ease,
        box-shadow .4s ease;
}

.servicio-card:hover img {

    transform: scale(1.06) rotate(1deg);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.2);
}

.servicio-info h2 {

    font-size: 30px;
    font-weight: 700;

    margin-bottom: 15px;

    background: linear-gradient(90deg,
            #1e293b,
            #2563eb);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

.servicio-info p {
    color: #475569;
    margin-bottom: 15px;
}

.servicio-info ul {

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;

    margin-top: 20px;

}

.servicio-info ul li {

    background: white;

    padding: 10px 14px;

    border-radius: 10px;

    font-size: 14px;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.08);

    transition: all .3s;

}

.servicio-info ul li:hover {

    background: #2563eb;
    color: white;
}

.servicio-info ul li::before {
    left: 0;
    color: #2563eb;
    font-weight: bold;
}


/* Animacion */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp .8s ease forwards;
}

@keyframes fadeUp {

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* movil */

@media(max-width:768px) {

    .servicio-card {
        flex-direction: column;
        text-align: center;
    }

    .servicio-card.reverse {
        flex-direction: column;
    }

    .servicio-img img {
        max-width: 100%;
    }

}

/* ======== nosotros ======== */

/* HERO */

.nosotros-hero {

    position: relative;

    height: 260px;

    background: linear-gradient(120deg,
            #4f6fa8,
            #7fa4e8,
            #f19a9a);

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    text-align: center;

    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;

    overflow: hidden;

    margin-bottom: 30px;

}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            rgba(15, 23, 42, 0.75),
            rgba(37, 99, 235, 0.65),
            rgba(220, 38, 38, 0.45));

}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 20px;
}

.hero-content h1 {

    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;

}

/* CONTENEDOR BLANCO */

.nosotros-wrapper {
    max-width: 1200px;
    margin: 0 auto 20px auto;
    background: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.08);
}

/* QUIENES SOMOS */

.nosotros-info {
    margin-bottom: 70px;
}

.info-grid {
    display: flex;
    align-items: center;
    gap: 70px;
}

.info-text {

    flex: 1;

    font-size: 17px;
    line-height: 1.7;

}

.info-text h2 {

    font-size: 34px;

    margin-bottom: 20px;

    position: relative;

}

.info-text p {
    text-align: justify;
}

.info-text h2::after {

    content: "";

    width: 60px;
    height: 4px;

    background: linear-gradient(90deg,
            #2563eb,
            #dc2626);

    display: block;

    margin-top: 10px;

    border-radius: 4px;

}

.info-img {
    flex: 1;
}

.info-img img {

    width: 100%;

    border-radius: 30px;

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15);

    transition: .4s;

}

.info-img img:hover {

    transform: scale(1.05);

}


/* MISION VISION */

.mv-section {

    margin-bottom: 80px;

}

.mv-grid {

    display: flex;
    gap: 40px;

}

.mv-card {

    flex: 1;

    background: linear-gradient(145deg,
            #ffffff,
            #f8fafc);

    padding: 40px;

    border-radius: 25px;

    text-align: center;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.1);

    transition: .35s;

    position: relative;

}

.mv-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    height: 4px;
    width: 100%;

    background: linear-gradient(90deg,
            #2563eb,
            #dc2626);

    border-radius: 25px 25px 0 0;

}

.mv-card:hover {

    transform: translateY(-10px);

    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15);

}

.mv-card img {
    max-width: 300px;
    margin-bottom: 18px;

}


/* VALORES */

.valores-section {
    margin-bottom: 80px;
}

.valores-bubbles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;

}

.valores-bubbles span {

    padding: 14px 26px;

    border-radius: 40px;

    background: linear-gradient(135deg,
            #2563eb,
            #dc2626);

    border: 2px solid #2563eb;

    color: #ffffff;

    font-weight: 600;

    transition: .3s;

}

.valores-bubbles span:hover {

    background: white;

    color: rgb(0, 0, 0);

    transform: scale(1.1);

    border: none;

}


/* ELEGIRNOS */

.elegirnos-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 40px;

    margin-top: 50px;

    text-align: center;

}

.elegir-item {

    padding: 25px;

    border-radius: 22px;

    background: white;

    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.08);

    transition: .3s;

}

.elegir-item:hover {

    transform: translateY(-8px);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12);

}

.elegir-item img {

    max-width: 250px;

    margin-bottom: 10px;

}

.elegir-item h4 {

    color: #2563eb;

}


/* RESPONSIVE */

@media(max-width:768px) {
    .info-grid {
        flex-direction: column;
    }
    .mv-grid {
        flex-direction: column;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .info-img img {
        max-width: 100%;
        height: auto;
    }

    .mv-card img{
        width: 100%;
        height: auto;
    }

    .elegir-item img{
        width: 100%;
        height: auto;
    }
}
