:root {
    --color-primary-teal: #2FA89C;
    --color-primary-blue: #4285F4;
    --color-primary-purple: #4A3AFF;
    --color-secondary-blue: #3B82F6;
    --color-text-warning: #fcee21;
}

body {
    font-family: 'Lato', sans-serif;
    padding-top: 70px;
}

/* Navigation Bar */
.navbar {
    background-color: #458791;
    backdrop-filter: none;
    transition: all 0.3s ease;
    box-shadow: none;
    position: fixed;
}

.navbar.scrolled {
    background-color: #4587916c;
    box-shadow: none;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 600;
    font-size: 16px;
    padding: 0.5rem 1.2rem !important;
    margin: 0 0.3rem;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

h1, h2, h3, h4, .btn {
    font-family: 'Lato', sans-serif;
}

p, li, .small {
    font-family: 'Lato', sans-serif;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgb(0 153 153 / 66%), rgb(0 153 153 / 66%)), url(../img/img-hero.png);
    background-size: cover;
    background-position: center top; 
    min-height: 976px;
    position: relative;
}

.hero-title {
    font-weight: 800;
    font-size: 55px;
    line-height: 100%;
    margin-top: 150px;
}

.hero-subtitle {
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
    color: #fcee21;
}

.btn-consultanos {
    font-size: 18px;
    color: var(--color-primary-purple) !important;
    background-color: white !important;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn-consultanos:hover {
    background-color: var(--color-primary-purple) !important;
    color: white !important;
    transform: scale(0.95); /* Efecto Shrink */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Sombra más pequeña para reforzar el efecto de hundirse */
}

/* Features Section */
.features-section {
    background-color: var(--color-primary-blue);
    min-height: 515px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.feature-item:hover {
    cursor: pointer;
    transform: translateY(-9px);
    transition: all 0.3s;
}

.feature-item img {
    filter: brightness(0) invert(1);
}

/* About Section */

.nosotros {
    background: rgba(59, 31, 166, 0.85);
    background-size: cover;
    min-height: 600px;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: visible;
    padding: 40px 0;
}
.nosotros::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/img-sobrenosotros.png);

    z-index: -1;
}

.about-section {
    background: url(../img/img-sobrenosotros.png);
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-section .container-fluid {
    position: relative;
    z-index: 2;
}

.about-section .col-lg-6:first-child {
    position: relative;
}

.about-section img.img-fluid {
    position: absolute;
    bottom: -130px;
    left: 0;
    width: 100%;
    max-width: 500px;
    z-index: 10;
}

.about-content {
    position: relative;
    z-index: 2;
}

/* Servicios Section */
.servicios {
    background: url(../img/fondoseccion-servicios-crecer.png);
    background-size: cover;
    background-position: center;
    min-height: 600px;
    padding: 60px 0;
}

.servicios-title {
    color: #fcee21;
    font-weight: 800;
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 40px;
}

.servicio-card {
    background: linear-gradient(135deg, #2FA89C 0%, #258F84 100%);
    border-radius: 25px;
    padding: 30px 25px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.servicio-card-title {
    color: #fcee21;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.servicio-card-img {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.servicio-card-img img {
    max-height: 400px;
    object-fit: contain;
}

.btn-servicio {
    background-color: #e8f4f3;
    color: #2FA89C;
    font-weight: 600;
    border-radius: 25px;
    padding: 12px 30px;
    border: none;
    transition: all 0.3s ease;
}

.btn-servicio:hover {
    background-color: white;
    color: #258F84;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Specialties Section */
.specialties-section {
    background: linear-gradient(rgba(47, 168, 156, 0.9), rgba(37, 143, 132, 0.9)), url('../img/especialidades.png');
    background-size: cover;
    min-height: 600px;
    padding-top: 250px;
    position: relative;
    z-index: 1;
}

.specialties-section .text-warning {
    color: var(--color-text-warning) !important;
    font-size: 45px;
    margin-bottom: 10px !important;
}
.specialties-section .fa-circle {
    font-size: 10px; /* ajusta el tamaño del punto */
    vertical-align: middle;
}
.specialties-section ul li {
    font-size: 20px;
    margin-bottom: 8px;
}

/* Footer Section */
.footer-section {
    background-color: var(--color-primary-blue);
    padding: 60px 0;
}

.footer-section img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.social-icons i {
    cursor: pointer;
    transition: transform 0.2s;
}

.social-icons i:hover {
    transform: scale(1.1);
}

/* Sistema Section */
.sistema-section {
    background: linear-gradient(135deg, var(--color-primary-purple) 0%, var(--color-primary-blue) 100%);
    min-height: 600px;
}

.sistema-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sistema-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sistema-card i {
    display: block;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Contact Section */
.contact-section {
    background-color: #f0f0f0;
    padding: 40px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    min-height: 400px;
}

.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.form-wrapper {
    background: white;
    border-radius: 15px;
    padding: 35px 40px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.form-title {
    color: #333;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 25px;
    line-height: 1.3;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.form-input::placeholder {
    color: #999;
}

.form-input:focus {
    outline: none;
    border-color: #9B2D9B;
    box-shadow: 0 0 0 3px rgba(155, 45, 155, 0.1);
}

.form-input textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background: linear-gradient(135deg, #9B2D9B 0%, #7B1F7B 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #7B1F7B 0%, #5C175C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 45, 155, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

.form-status {
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 10px;
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Contact Section Responsive */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .map-wrapper iframe {
        min-height: 300px;
    }
    
    .form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 30px 15px;
    }
    
    .form-wrapper {
        padding: 25px 20px;
    }
    
    .form-title {
        font-size: 18px;
    }
    
    .form-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .btn-submit {
        padding: 14px 25px;
        font-size: 15px;
    }
}






/* ========== RESPONSIVE ========== */






@media (max-width: 991px) {
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        margin: 0.3rem 0;
    }

    .hero-title {
        font-size: 40px;
        margin-top: 80px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    /* About Section en tablet */
    .about-section {
        min-height: auto;
        padding: 60px 0 250px;
    }

    .about-section img.img-fluid {
        position: relative;
        bottom: auto;
        max-width: 350px;
        margin: 0 auto 30px;
        display: block;
    }

    .about-section .col-lg-6:first-child {
        text-align: center;
    }

    .specialties-section {
        padding-top: 80px;
        min-height: auto;
    }
}




@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
        margin-top: 60px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .btn-consultanos {
        font-size: 16px;
        width: 100% !important;
    }

    /* About Section en móvil */
    .about-section {
        padding: 40px 0 60px;
        overflow: visible;
    }

    .about-section .row {
        flex-direction: column;
        align-items: center;
    }

    .about-section .col-lg-6:first-child {
        order: 2;
        margin-top: 30px;
    }

    .about-section .col-lg-6:last-child {
        order: 1;
    }

    .about-section img.img-fluid {
        position: relative;
        bottom: auto;
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }

    .about-content h2 {
        font-size: 24px;
        text-align: center;
    }

    .about-content p {
        font-size: 16px;
        text-align: center;
    }

    .about-content .btn {
        display: block;
        margin: 20px auto 0;
        text-align: center;
    }

    /* Specialties en móvil */
    .specialties-section {
        padding-top: 60px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .specialties-section .text-warning {
        font-size: 24px;
        text-align: center;
    }

    .specialties-section ul {
        text-align: center;
    }

    .specialties-section ul li {
        font-size: 16px;
    }

    .specialties-section .row.mt-5 {
        text-align: center;
    }

    .specialties-section .row.mt-5 h4 {
        margin-bottom: 20px;
    }

    .specialties-section .row.mt-5 ul {
        text-align: left;
        padding-left: 20px;
    }

    /* Features en móvil */
    .features-section {
        min-height: auto;
        padding: 40px 0;
    }

    .features-section h2 {
        font-size: 28px;
    }

    .feature-item p {
        font-size: 14px !important;
    }

    /* Footer en móvil */
    .footer-section {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }

    .hero-section {
        min-height: 700px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .about-section {
        padding: 30px 15px 50px;
    }

    .about-content h2 {
        font-size: 20px;
    }

    .about-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    .about-section img.img-fluid {
        max-width: 220px;
    }

    .specialties-section .text-warning {
        font-size: 20px;
    }

    .specialties-section ul li {
        font-size: 14px;
    }
}

/* Capacitación Section */
.capacitacion-section {
    background: url(../img/Fondo-area-de-capacitacion.png);
    background-size: cover;
    background-position: center;
    position: relative;
    /* Asegurar que el texto sea legible si la imagen falla o es clara */
    background-color: #f0f8ff; 
}

@media (max-width: 768px) {
    .capacitacion-section {
        text-align: center;
        padding: 40px 0;
    }
    .capacitacion-section img {
        margin-bottom: 20px;
    }
}