/* ==========================================================================
   Variables de Color
   ========================================================================== */
   :root {
    --color-orange: #f26122; /* Color Fuego */
    --color-green: #1f8a2f; /* Verde Corporativo */
    --color-dark-blue: #0b1e36; /* Azul Oscuro para textos/contactos */
    --color-light-gray: #f4f6f8;
    --font-primary: 'Poppins', sans-serif;
}

/* ==========================================================================
   Estilos Generales
   ========================================================================== */
body {
    font-family: var(--font-primary);
    color: #4a5568;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
}

.fs-7 {
    font-size: 0.875rem;
}

/* Colores de texto personalizados */
.text-orange { color: var(--color-orange) !important; }
.text-green { color: var(--color-green) !important; }
.text-dark-blue { color: var(--color-dark-blue) !important; }

/* Fondos personalizados */
.bg-orange { background-color: var(--color-orange) !important; }
.bg-green { background-color: var(--color-green) !important; }
.bg-dark-blue { background-color: var(--color-dark-blue) !important; }
.bg-light-gray { background-color: var(--color-light-gray) !important; }

/* ==========================================================================
   Botones
   ========================================================================== */
.btn-orange {
    background-color: var(--color-orange);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    background-color: #d85218;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 97, 34, 0.3) !important;
}

.btn-green {
    background-color: var(--color-green);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-green:hover {
    background-color: #176d24;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 138, 47, 0.3) !important;
}

/* ==========================================================================
   Navegación (Header)
   ========================================================================== */
.navbar {
    padding-top: 10px;
    padding-bottom: 10px;
    transition: all 0.3s ease;
}

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

.nav-link {
    color: var(--color-dark-blue) !important;
    position: relative;
    padding: 8px 15px !important;
}

/* Efecto subrayado color fuego */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-orange);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after, 
.nav-link.active::after {
    width: 80%;
}

/* ==========================================================================
   Sección Inicio (Hero)
   ========================================================================== */
.hero-section {
    min-height: 70vh;
    position: relative;
    padding-top: 80px;
    padding-bottom: 100px;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Para crear el fondo blanco dividido */
.hero-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.95) 45%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

/* Curva abajo del hero */
.hero-overlay-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.hero-overlay-shape::before {
    content: '';
    display: block;
    width: 100%;
    height: 80px;
    background: var(--color-light-gray);
    clip-path: ellipse(60% 100% at 50% 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-features {
    max-width: 500px;
}

.feature-item {
    transition: transform 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-3px);
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.icon-orange i { color: var(--color-orange); }
.icon-green i { color: var(--color-green); }
.icon-dark i { color: var(--color-dark-blue); }
.icon-purple i { color: #6f42c1; } /* Solo por si hay otro color en valores */

/* ==========================================================================
   Títulos de Sección
   ========================================================================== */
.section-title {
    letter-spacing: 1px;
    margin-bottom: 0;
}

.title-underline {
    height: 3px;
    width: 60px;
    border-radius: 2px;
}

/* ==========================================================================
   Sección Servicios
   ========================================================================== */
.service-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.service-card .card-img-top {
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img-top {
    transform: scale(1.05);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -35px auto 15px;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.service-icon i {
    font-size: 1.8rem;
}

/* ==========================================================================
   Sección Nosotros
   ========================================================================== */
.nosotros-wrapper {
    background-color: white;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.nosotros-img {
    min-height: 400px;
}

/* ==========================================================================
   Sección Valores
   ========================================================================== */
.hover-lift {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
    border-color: rgba(0,0,0,0.05);
}

/* ==========================================================================
   Sección Contacto
   ========================================================================== */
.contact-info-card {
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.contact-info-card > * {
    position: relative;
    z-index: 1;
}

.contact-list li {
    transition: transform 0.2s ease;
}
.contact-list li:hover {
    transform: translateX(5px);
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--color-green) !important;
    background-color: #fff !important;
}

/* ==========================================================================
   Sección FAQ (Preguntas Frecuentes)
   ========================================================================== */
.custom-accordion .accordion-item {
    border: 1px solid rgba(0,0,0,0.05) !important;
    overflow: hidden;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background-color: var(--color-orange);
    color: white;
    box-shadow: none;
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
}

.custom-accordion .accordion-button::after {
    filter: grayscale(1) invert(0);
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-orange);
    padding-left: 5px;
}

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

.social-icon:hover {
    background-color: var(--color-orange);
    color: white;
    transform: translateY(-3px);
}

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

/* ==========================================================================
   Botón Volver Arriba
   ========================================================================== */
#backToTop {
    transition: all 0.3s ease;
    opacity: 0.8;
}

#backToTop:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ==========================================================================
   Botón WhatsApp Flotante
   ========================================================================== */
.btn-whatsapp {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    font-size: 32px;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Responsive y Ajustes
   ========================================================================== */
@media (max-width: 991px) {
    .hero-bg-image::before {
        background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 70%, rgba(255,255,255,0.8) 100%);
    }
    
    .hero-section {
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-features {
        margin: 0 auto;
    }
    
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        margin-top: 10px;
    }

    .nosotros-img {
        height: 300px;
    }
}

/* Formulario Moderno */
.modern-input-group {
    position: relative;
}

.modern-input-group i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-orange);
    font-size: 1.1rem;
    z-index: 5;
    transition: all 0.3s ease;
}

.modern-input-group .form-control {
    padding-left: 3.5rem;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    background-color: #fcfcfc;
    transition: all 0.3s ease;
}

.modern-input-group .form-control:focus {
    background-color: white;
    border-color: var(--color-green);
    box-shadow: 0 8px 25px rgba(31, 138, 47, 0.08);
    outline: none;
}

.modern-input-group textarea.form-control {
    padding-top: 1rem;
}

.shadow-green-lg {
    box-shadow: 0 10px 20px rgba(31, 138, 47, 0.2);
    transition: all 0.3s ease;
}

.shadow-green-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(31, 138, 47, 0.3);
}

.tracking-wider {
    letter-spacing: 1px;
}
