/* ========================================
   Consorcio ISL - Estilos Personalizados
   ======================================== */

/* Variables de color */
:root {
    --primary-red: #E31E24;
    --dark-red: #C41E24;
    --light-gray: #F5F5F5;
    --dark-gray: #666666;
    --footer-gray: #4A4A4A;
    --white: #FFFFFF;
    --text-dark: #333333;
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

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

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    background-color: var(--primary-red) !important;
    color: white !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::after {
    width: 0;
}

.navbar-nav .nav-link.active {
    background-color: var(--primary-red) !important;
    color: white !important;
}

.navbar-nav .nav-link.active::after {
    width: 0;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    width: 200px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(227, 30, 36, 0.25);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-red);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    background: linear-gradient(to bottom, transparent 0%, transparent 60%, white 60%, white 100%),
                url('../img/fondo 1.png') no-repeat center top;
    background-size: auto, 90%;
    min-height: 100vh;
    overflow: hidden;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

 .content-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
    max-width: 1834px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Notificación de envío */
.toast-notice-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.toast-notice {
    background: #ffffff;
    color: var(--text-dark);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 90%;
    text-align: center;
}

.toast-notice h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-red);
    font-weight: 700;
}

.toast-notice p {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.toast-notice .toast-close-btn {
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
}

.toast-notice .toast-close-btn:hover {
    background: var(--dark-red);
}

/* Estadísticas flotantes en hero */
.hero-stats-floating {
    position: absolute;
    top: 1px;
    left: 96px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(230, 230, 230, 0.95);
    padding: 1.2rem 1.6rem;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    color: var(--footer-gray);
    z-index: 4;
}

.hero-stats-floating .stat-item {
    text-align: center;
}

.hero-stats-floating .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--footer-gray);
    margin-bottom: 0.35rem;
}

.hero-stats-floating .stat-label {
    font-size: 0.95rem;
    color: var(--footer-gray);
    margin: 0;
}

.hero-stats-floating .stat-divider {
    width: 1px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.12);
}

/* Imagen reemplazo de estadísticas */
.hero-franja-standalone {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.hero-franja-img {
    width: 80%;
    max-width: 900px;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.25));
}

.btn-primary {
    background-color: var(--primary-red);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-red);
    transform: translateY(-2px);
}

/* Estadísticas */
.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    padding: 2rem 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 1834px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin: 0;
}

.stat-divider {
    width: 2px;
    height: 60px;
    background-color: #ddd;
}

/* Hero Image */
.hero-image-container {
    position: absolute;
    right: -50px;
    bottom: 0;
    z-index: 3;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-image {
    max-height: 110vh;
    height: auto;
    object-fit: contain;
    object-position: bottom right;
    transform: scale(1.105);
    transform-origin: bottom right;
}

/* Franja superpuesta en el hero */
.hero-franja-container {
    position: absolute;
    left: 50%;
    top: 12%;
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.hero-franja {
    width: 80%;
    max-width: 80%;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.25));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ========================================
   NOSOTROS SECTION
   ======================================== */
.nosotros-section {
    position: relative;
    min-height: 70vh;
}

.nosotros-header {
    text-align: center;
    padding: 4rem 0 2rem;
    background-color: var(--white);
}

.nosotros-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0;
}

.nosotros-section .row {
    width: 100%;
}

/* Misión - Fondo Rojo con imagen */
.nosotros-mision {
    background: url('../img/mision.jpg') no-repeat center center;
    background-size: cover;
    background-position: center center;
    color: var(--white);
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4rem 2rem;
}

.nosotros-mision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(227, 30, 36, 0);
    z-index: 1;
}

/* Visión - Fondo con imagen */
.nosotros-vision {
    background: url('../img/vision.jpg') no-repeat center center;
    background-size: cover;
    background-position: center center;
    color: var(--text-dark);
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4rem 2rem;
}

.nosotros-vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
}

.nosotros-content {
    padding: 3rem 2.5rem;
    max-width: 550px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
}

.nosotros-mision .nosotros-content {
    background: rgba(255, 255, 255, 0.85);
}

.nosotros-vision .nosotros-content {
    background: rgba(255, 255, 255, 0.85);
}

.nosotros-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

.nosotros-mision .nosotros-icon {
    color: var(--primary-red);
}

.nosotros-vision .nosotros-icon {
    color: var(--primary-red);
}

.nosotros-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    text-align: center;
}

.nosotros-mision .nosotros-title {
    color: var(--primary-red);
}

.nosotros-vision .nosotros-title {
    color: var(--primary-red);
}

.nosotros-text {
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
    font-weight: 400;
}

.nosotros-mision .nosotros-text {
    color: var(--text-dark);
}

.nosotros-vision .nosotros-text {
    color: var(--text-dark);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
    background-color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--dark-gray);
    max-width: 800px;
    margin: 0 auto;
}

.service-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    background: var(--white);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(227, 30, 36, 0.15);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #E31E24 0%, #FF6B6B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(227, 30, 36, 0.3);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.service-description {
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.6;
}


/* ========================================
   DESARROLLO SECTION
   ======================================== */
.desarrollo-section {
    background: linear-gradient(135deg, #E31E24 0%, #FF6B6B 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Imagen decorativa en desarrollo */
.desarrollo-decorative-image {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 180px;
    height: auto;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.section-title-white {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.section-description-white {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.desarrollo-list {
    list-style: none;
    padding: 0;
}

.desarrollo-list li {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.desarrollo-list i {
    color: #FFA94D;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.desarrollo-image-container {
    text-align: center;
}

.desarrollo-image-container img {
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ========================================
   CONTACTO SECTION
   ======================================== */
.contacto-section {
    background-color: var(--light-gray);
    padding: 5rem 0;
}

.contacto-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.contacto-subtitle {
    font-size: 1rem;
    color: var(--dark-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* Formulario de Contacto */
.contact-form-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(227, 30, 36, 0.15);
    outline: none;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    background-color: var(--primary-red);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
}

/* Información de Contacto en Formulario */
.contact-info-box {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contacto-item:last-child {
    margin-bottom: 0;
}

.contacto-item i {
    color: var(--primary-red);
    font-size: 1.2rem;
    min-width: 25px;
}

.contacto-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacto-item a:hover {
    color: var(--primary-red);
}

/* Redes Sociales en Formulario */
.social-title-form {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--dark-red);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
}

.social-icon i {
    font-size: 1.1rem;
}

/* Mapa de Google Maps */
.map-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.map-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.map-responsive {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.map-responsive iframe {
    width: 100%;
    min-height: 500px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: #2c2c2c;
    color: var(--white);
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.footer-text a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: var(--primary-red);
}

.footer-text i {
    color: var(--primary-red);
    width: 20px;
}

.footer-contact {
    margin-top: 1rem;
}

/* Redes sociales del footer */
.footer-social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.footer-social-icon:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.4);
    border-color: var(--primary-red);
}

.footer-social-icon i {
    font-size: 1.1rem;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1.5rem;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-divider {
        width: 60px;
        height: 2px;
    }

    .hero-image-container {
        position: relative;
        right: 0;
        width: 100%;
        margin-top: 2rem;
    }

    .hero-image {
        max-height: 400px;
    }

    .hero-stats-floating {
        position: static;
        margin-bottom: 1rem;
        width: 100%;
        justify-content: center;
    }

    .hero-franja-container {
        top: 38%;
    }

    .hero-franja {
        width: 80%;
    }

    .social-section {
        text-align: center;
        margin-top: 2rem;
    }

    .social-icons {
        justify-content: center;
    }

    .content-box {
        padding: 2rem;
        max-width: 100%;
    }

    .stats-container {
        max-width: 100%;
    }

    /* Nosotros responsive */
    .nosotros-mision,
    .nosotros-vision {
        min-height: 60vh;
        padding: 3rem 1.5rem;
    }

    .nosotros-mision::before {
        background: rgba(227, 30, 36, 0.30);
    }

    .nosotros-vision::before {
        background: rgba(255, 255, 255, 0.20);
    }

    .nosotros-content {
        padding: 2.5rem 2rem;
        max-width: 100%;
    }

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

    .nosotros-text {
        font-size: 0.95rem;
    }

    .nosotros-icon {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-stats-floating {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline-light {
        width: 100%;
    }

    .hero-franja-container {
        top: 42%;
    }

    .hero-franja {
        width: 80%;
        max-width: 80%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-title-white {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Imagen decorativa responsive */
    .desarrollo-decorative-image {
        width: 100px;
        bottom: 10px;
        right: 10px;
        opacity: 0.25;
    }

    /* Contacto responsive */
    .contacto-main-title {
        font-size: 2rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .map-container {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .map-responsive iframe {
        min-height: 350px;
    }

    .map-title {
        font-size: 1.5rem;
    }

    /* Footer responsive */
    .footer-title {
        font-size: 1.1rem;
    }

    .footer-text {
        font-size: 0.9rem;
    }

    .footer-social-icons {
        justify-content: flex-start;
    }
}

/* Animaciones suaves */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ========================================
   BOTÓN FLOTANTE DE WHATSAPP
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float i {
    line-height: 60px;
}

/* Animación de pulso para llamar la atención */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }

    .whatsapp-float i {
        line-height: 55px;
    }
}
