/* =====================================================
   REDWORK - ESTILOS PROFESIONALES
   PALETA: Azul oscuro (#0f172a, #1e3a5f) + Naranja (#f97316, #ea580c)
   ===================================================== */

:root {
    /* Azules oscuros - Fondos y elementos principales */
    --blue-dark-900: #0a0f1e;
    --blue-dark-800: #0f172a;
    --blue-dark-700: #1e293b;
    --blue-dark-600: #1e3a5f;
    --blue-dark-500: #2d4a7c;
    
    /* Naranjas - Acentos y llamados a acción */
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-400: #fb923c;
    --orange-100: #fff7ed;
    --orange-50: #ffedd5;
    
    /* Complementarios */
    --white: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 15px rgba(249, 115, 22, 0.3);
    
    /* Degradados */
    --gradient-hero: linear-gradient(135deg, var(--blue-dark-800) 0%, var(--blue-dark-600) 50%, var(--orange-500) 100%);
    --gradient-card: linear-gradient(135deg, var(--blue-dark-700) 0%, var(--blue-dark-800) 100%);
    --gradient-button: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
    --gradient-featured: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 50%, var(--blue-dark-600) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--blue-dark-900);
    color: var(--gray-100);
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 span, h2 span, .text-orange {
    color: var(--orange-500);
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white) !important;
}

.navbar-brand i {
    color: var(--orange-500);
    margin-right: 0.5rem;
}

.nav-link {
    color: var(--gray-300) !important;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--orange-500) !important;
}

/* =====================================================
   BOTONES
   ===================================================== */
.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-button);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    background: var(--orange-600);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--orange-500);
    color: var(--orange-500);
}

.btn-outline:hover {
    background: var(--orange-500);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-light-custom {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: var(--white);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.btn-light-custom:hover {
    background: var(--orange-500);
    border-color: var(--orange-500);
    transform: translateY(-2px);
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    background: var(--gradient-hero);
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(249,115,22,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--orange-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
}

/* Badge */
.hero-badge {
    margin-bottom: 1.5rem;
}

.hero-badge .badge {
    background: rgba(249, 115, 22, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--orange-500);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.hero-badge .badge i {
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

/* Título */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.text-gradient {
    background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Descripción */
.hero-description {
    font-size: 1.125rem;
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-description strong {
    color: var(--orange-500);
}

/* Botones del hero */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-primary .btn-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    margin-left: 0.75rem;
    font-weight: 500;
}

/* Features */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(249, 115, 22, 0.2);
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-300);
    font-size: 0.875rem;
}

.feature-item i {
    color: var(--orange-500);
    font-size: 1rem;
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--orange-500);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(249, 115, 22, 0.3);
}

/* =====================================================
   IMAGEN HERO Y ELEMENTOS FLOTANTES
   ===================================================== */

/* Contenedor principal de la imagen */
.hero-image-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Wrapper de la imagen */
.hero-image-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: visible;
    box-shadow: var(--shadow-xl);
    background: var(--blue-dark-700);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Imagen principal */
.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1.5rem;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.02);
}

/* Badge de la imagen (superior derecha) */
.hero-image-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--orange-500);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.hero-image-badge i {
    font-size: 0.875rem;
}

/* =====================================================
   ELEMENTOS FLOTANTES - DENTRO DE LA IMAGEN
   ===================================================== */

.hero-image-float {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(249, 115, 22, 0.4);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    z-index: 10;
}

.hero-image-float i {
    color: var(--orange-500);
    font-size: 0.875rem;
}

/* Posiciones de elementos flotantes */
.float-1 {
    top: 16%;
    left: 25%;
    animation: float 3s ease-in-out infinite;
}

.float-2 {
    bottom: 8%;
    right: 22%;
    animation: float 3.5s ease-in-out infinite;
}

.float-3 {
    top: 60%;
    right: 60%;
    left: auto;
    animation: float 4s ease-in-out infinite;
}

/* Animación de flotación */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Ola decorativa */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 1;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* =====================================================
   SECCIONES
   ===================================================== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.section-title span {
    color: var(--orange-500);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-400);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.bg-dark-section {
    background: var(--blue-dark-800);
    position: relative;
}

/* =====================================================
   SERVICE CARDS
   ===================================================== */
.service-card {
    background: var(--gradient-card);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(249, 115, 22, 0.1);
    height: 100%;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange-500);
    box-shadow: var(--shadow-lg);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--orange-500);
    margin-bottom: 1rem;
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.service-card p {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* =====================================================
   MEMBERSHIP CARDS
   ===================================================== */
.membership-card {
    background: var(--gradient-card);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(249, 115, 22, 0.15);
    position: relative;
    height: 100%;
}

.membership-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange-500);
    box-shadow: var(--shadow-lg);
}

.membership-card.featured {
    background: var(--gradient-featured);
    border: none;
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.membership-card.featured .price,
.membership-card.featured .card-text {
    color: rgba(255, 255, 255, 0.9);
}

.membership-card .icon {
    width: 80px;
    height: 80px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.membership-card.featured .icon {
    background: rgba(255, 255, 255, 0.2);
}

.membership-card .icon i {
    font-size: 2.5rem;
    color: var(--orange-500);
}

.membership-card.featured .icon i {
    color: var(--white);
}

.membership-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.membership-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0;
    color: var(--orange-500);
}

.membership-card.featured .price {
    color: var(--white);
}

.membership-card .price small {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-400);
}

.membership-card.featured .price small {
    color: rgba(255, 255, 255, 0.8);
}

.membership-card .card-text {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.membership-card .features-list {
    text-align: left;
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.membership-card .features-list li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--gray-300);
}

.membership-card .features-list li i {
    color: var(--orange-500);
    margin-right: 0.5rem;
}

.membership-card.featured .features-list li i {
    color: rgba(255, 255, 255, 0.9);
}

.btn-membership {
    background: transparent;
    border: 2px solid var(--orange-500);
    color: var(--orange-500);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
}

.btn-membership:hover {
    background: var(--orange-500);
    color: var(--white);
    transform: translateY(-2px);
}

.membership-card.featured .btn-membership {
    background: var(--white);
    color: var(--orange-600);
    border: none;
}

.membership-card.featured .btn-membership:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* =====================================================
   CÓMO FUNCIONA
   ===================================================== */
.bg-gradient {
    background: var(--gradient-button);
}

/* =====================================================
   STATS SECTION
   ===================================================== */
.display-4 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--orange-500);
    margin-bottom: 0.5rem;
}




/* =====================================================
   CORRECCIÓN DE COLORES DE TEXTO - GLOBAL
   ===================================================== */

/* Forzar color blanco para textos principales */
.text-white,
strong,
.card strong,
.historial-card strong,
.codigo,
.badge-completado,
.rating-stars span,
.nav-link.active,
.modal-title {
    color: #ffffff !important;
}

/* Forzar color gris claro para textos secundarios */
.text-muted,
small:not(.text-warning):not(.text-danger):not(.badge),
.small:not(.text-warning):not(.text-danger),
.card .text-muted,
.historial-card .text-muted,
.historial-card small,
.star-row .star-label,
.star-row .star-count,
.solicitud-card .text-muted,
.cotizacion-card small,
.tracking-card .text-muted {
    color: #cbd5e1 !important;
}

/* Color específico para fechas y textos tenues */
.small,
.historial-card .small,
.card-footer small,
.fecha-texto,
.text-gray {
    color: #94a3b8 !important;
}

/* Comentarios y citas */
.quote-text,
.comentario-text,
blockquote small {
    color: #a0aec0 !important;
}

/* Asegurar que el texto dentro de las estrellas sea visible */
.rating-stars .text-muted.ms-2,
.rating-stars span {
    color: #cbd5e1 !important;
}

/* Tarjetas de estadísticas */
.stat-card p,
.stat-card .text-muted,
.stats-card .label {
    color: #94a3b8 !important;
}

/* Mensajes de "Sin calificar" y similares */
.sin-calificar,
.empty-message,
.text-empty {
    color: #64748b !important;
}

/* Alertas y mensajes de ayuda */
.alert-info,
.alert-warning,
.help-text {
    color: #cbd5e1 !important;
}

/* Tablas - celdas */
.table td,
.table .text-muted {
    color: #cbd5e1 !important;
}

/* Footer */
footer p,
footer .text-muted {
    color: #94a3b8 !important;
}




/* =====================================================
   FOOTER
   ===================================================== */
footer {
    background: var(--blue-dark-900);
    border-top: 1px solid rgba(249, 115, 22, 0.2);
    padding: 60px 0 30px;
}

footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--orange-500);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 0.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--orange-500);
    color: var(--white);
}

/* =====================================================
   FORMULARIOS
   ===================================================== */
.form-container {
    background: var(--blue-dark-800);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(249, 115, 22, 0.2);
    max-width: 500px;
    margin: 0 auto;
}

.form-label {
    color: var(--gray-300);
}

.form-control {
    background: var(--blue-dark-900);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 0.5rem;
    color: var(--white);
    padding: 0.75rem;
}

.form-control:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
    background: var(--blue-dark-900);
    color: var(--white);
}

.form-control::placeholder {
    color: var(--gray-500);
}

/* =====================================================
   ALERTAS
   ===================================================== */
.alert {
    border-radius: 0.5rem;
    border: none;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-left: 4px solid #3b82f6;
}

/* =====================================================
   RESPONSIVE (AJUSTES BÁSICOS)
   ===================================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-features {
        flex-wrap: wrap;
    }
    
    .float-1, .float-2, .float-3 {
        display: none !important;
    }
    
    .membership-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-stats {
        gap: 1rem;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-card i {
        font-size: 2rem;
    }
    
    .service-card h4 {
        font-size: 1rem;
    }
    
    .membership-card {
        padding: 1.5rem;
    }
    
    .membership-card .price {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-badge .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
    
    .feature-item {
        font-size: 0.75rem;
    }
    
    .stat-number {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .hero-image-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.2rem 0.6rem;
        font-size: 0.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-card i {
        font-size: 1.5rem;
    }
    
    .service-card h4 {
        font-size: 0.9rem;
    }
    
    .membership-card h3 {
        font-size: 1.25rem;
    }
    
    .membership-card .price {
        font-size: 1.5rem;
    }
    
    .membership-card .features-list li {
        font-size: 0.75rem;
    }
    
    .btn-membership {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .display-4 {
        font-size: 1.5rem;
    }
    
    footer {
        padding: 40px 0 20px;
    }
    
    footer h5 {
        font-size: 1.1rem;
    }
}


/* =====================================================
   BOTÓN HAMBURGUESA (NAVBAR TOGGLER) - COLOR NARANJA
   ===================================================== */

/* Color del borde del botón */
.navbar-toggler {
    border-color: rgba(249, 115, 22, 0.6) !important;
    background-color: rgba(249, 115, 22, 0.05);
    transition: all 0.3s ease;
}

/* Color de las 3 líneas (hamburguesa) */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f97316' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Efecto al hacer hover */
.navbar-toggler:hover {
    border-color: rgba(249, 115, 22, 1) !important;
    background-color: rgba(249, 115, 22, 0.1);
    transform: scale(1.02);
}

/* Efecto al hacer focus/click */
.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.4) !important;
    outline: none;
}

/* Cuando el menú está expandido (abierto) */
.navbar-toggler[aria-expanded="true"] {
    border-color: var(--orange-500) !important;
    background-color: rgba(249, 115, 22, 0.15);
}

/* Responsive - ajustes para móviles */
@media (max-width: 992px) {
    .navbar-toggler {
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-toggler-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
}

@media (max-width: 576px) {
    .navbar-toggler {
        padding: 0.4rem 0.6rem;
    }
    
    .navbar-toggler-icon {
        width: 1rem;
        height: 1rem;
    }
}
