/* Variables CSS personalizadas */
:root {
    --theme-primary: #e52713;
    --theme-hover: #93190c;
    --theme-light: #EFE9E3;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --yellow-light: #fefce8;
    --green-light: #f0fdf4;
    --blue-light: #eff6ff;
}

/* Configuración general */
body {
    font-family: 'Manrope', Helvetica, sans-serif;
}

.vr-header{
    width: 1px;
    opacity: .25;
    background-color: #FFFFFF;
    height: 74px;
}

.py-xl {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Header y Navegación */
.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.main-navigation .nav-menu li {
    margin: 0;
}

.main-navigation .nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: block;
}

.main-navigation .nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Mobile Navigation */
.navbar-toggler {
    border: none;
    background: none;
    padding: 0.25rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.mobile-navigation .mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-navigation .mobile-nav-menu li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-navigation .mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-navigation .mobile-nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 0;
    display: block;
    transition: all 0.3s ease;
}

.mobile-navigation .mobile-nav-menu a:hover {
    color: rgba(255, 255, 255, 0.8);
    padding-left: 1rem;
}

.mobile-navigation .mobile-phone a {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

/* Logo responsive */
.logo-principal {
    max-height: 72px;
    width: auto;
}

@media (max-width: 768px) {
    .logo-principal {
        max-height: 72px;
    }
}

/* Header y Navegación */
.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.main-navigation .nav-menu li {
    margin: 0;
}

.main-navigation .nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: block;
}

.main-navigation .nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Mobile Navigation */
.navbar-toggler {
    border: none;
    background: none;
    padding: 0.25rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.mobile-navigation .mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-navigation .mobile-nav-menu li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-navigation .mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-navigation .mobile-nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 0;
    display: block;
    transition: all 0.3s ease;
}

.mobile-navigation .mobile-nav-menu a:hover {
    color: rgba(255, 255, 255, 0.8);
    padding-left: 1rem;
}

.mobile-navigation .mobile-phone a {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

/* Logo responsive */
.logo-principal {
    max-height: 72px;
    width: auto;
}

@media (max-width: 768px) {
    .logo-principal {
        max-height: 72px;
    }
}

/* Botones personalizados */
.btn-theme {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    color: white;
}

.btn-theme:hover {
    background-color: var(--theme-hover);
    border-color: var(--theme-hover);
    color: white;
}

.btn-outline-theme {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.btn-outline-theme:hover {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    color: white;
}

/* Colores de texto y fondo */
.text-theme {
    color: var(--theme-primary) !important;
}

.bg-theme {
    background-color: var(--theme-primary) !important;
}

.bg-theme-gradient {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-hover));
}

.bg-theme-light {
    background-color: var(--theme-light);
}

.bg-yellow-light {
    background-color: var(--yellow-light);
}

.bg-green-light {
    background-color: var(--green-light);
}

.bg-blue-light {
    background-color: var(--blue-light);
}

/* Bordes redondeados personalizados */
.rounded-3 {
    border-radius: 1rem !important;
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

/* Mini Cards Horizontales para Proyectos */
.projects-horizontal-container {
    position: relative;
    margin-bottom: 1rem;
}

.projects-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-primary) transparent;
}

.projects-scroll::-webkit-scrollbar {
    height: 6px;
}

.projects-scroll::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.projects-scroll::-webkit-scrollbar-thumb {
    background: var(--theme-primary);
    border-radius: 3px;
}

.projects-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--theme-hover);
}

.project-mini-card {
    flex: 0 0 auto;
    width: 180px;
}

.project-radio-container {
    position: relative;
}

.project-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.project-label {
    display: block;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.project-label:hover {
    border-color: var(--theme-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-radio:checked + .project-label {
    /*border-color: var(--theme-primary);*/
    background-color: var(--theme-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.project-radio:checked + .project-label::after {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--theme-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.project-image {
    margin-bottom: 0.5rem;
}

.project-image img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
}

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

.project-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.project-location {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.project-location i {
    font-size: 0.7rem;
    margin-right: 0.25rem;
}

.project-price {
    font-weight: 700;
    color: var(--theme-primary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.project-savings {
    font-size: 0.7rem;
    color: #059669;
    font-weight: 500;
}

.scroll-hint {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.scroll-hint i {
    font-size: 0.7rem;
    opacity: 0.5;
}

/* Responsive para mini cards */
@media (max-width: 768px) {
    .project-mini-card {
        width: 160px;
    }
    
    .project-label {
        padding: 0.5rem;
    }
    
    .project-image img {
        height: 100px;
    }
    
    .project-name {
        font-size: 0.85rem;
    }
    
    .project-price {
        font-size: 0.8rem;
    }
    
    .project-savings {
        font-size: 0.65rem;
    }
}

@media (max-width: 576px) {
    .project-mini-card {
        width: 140px;
    }
    
    .projects-scroll {
        gap: 0.75rem;
    }
    
    .scroll-hint span {
        display: none;
    }
}

/* Formularios */
.form-control:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #198754;
}

.invalid-feedback {
    display: none; /* Oculto por defecto */
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.invalid-feedback.d-block {
    display: block !important;
}

.valid-feedback {
    display: none; /* Oculto por defecto */
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #198754;
}

.valid-feedback.d-block {
    display: block !important;
}

/* Sombras personalizadas */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Cards de beneficios */
.benefit-card {
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
}

/* Responsividad para títulos */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .benefit-card {
        padding: 0.75rem;
    }
    
    .bg-red-gradient {
        padding: 1rem !important;
    }
}

/* Animaciones sutiles */
.project-card,
.benefit-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estados de validación personalizados */
.field-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

.field-success {
    border-color: #198754 !important;
    background-color: #f0fff4;
}

/* Mejoras de accesibilidad */
.btn:focus,
.form-control:focus,
.project-card:focus {
    /*outline: 2px solid var(--theme-primary);
    outline-offset: 2px;*/
}

/* Estilos para el formulario de carga */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--theme-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mejoras tipográficas */
.fw-medium {
    font-weight: 500;
}

.lh-base {
    line-height: 1.5;
}

/* Espaciado personalizado */
.py-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Hover effects para enlaces */
a:hover {
    transition: all 0.3s ease;
}

/* Estilos para alertas personalizadas */
.alert-custom {
    border: none;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
}

.alert-success-custom {
    background-color: #d4edda;
    color: #155724;
}

.alert-error-custom {
    background-color: #f8d7da;
    color: #721c24;
}