/* ============================================
   HLD CONSTRUCTORA - ESTILOS PROFESIONALES
   ============================================ */

/* Variables de colores */
:root {
    --azul-hld: #1A237E;
    --dorado-hld: #FFD600;
    --amarillo-ladrillo: #D4A05E;
    --blanco-hld: #FFFFFF;
    --rojo-hld: #B71C1C;
    --azul-oscuro: #0D1642;
    --gris-claro: #F5F5F5;
    --gris-texto: #666666;
    --negro: #212529;
}

/* ============================================
   TIPOGRAFÍA Y ESTILOS GLOBALES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--negro);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--gris-texto);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

/* ============================================
   CLASES UTILITARIAS
   ============================================ */

.bg-azul-hld { background-color: var(--azul-hld) !important; }
.bg-dorado-hld { background-color: var(--dorado-hld) !important; }
.bg-amarillo-ladrillo { background-color: var(--amarillo-ladrillo) !important; }
.bg-rojo-hld { background-color: var(--rojo-hld) !important; }
.bg-gris-claro { background-color: var(--gris-claro) !important; }

.text-azul-hld { color: var(--azul-hld) !important; }
.text-dorado-hld { color: var(--dorado-hld) !important; }
.text-amarillo-ladrillo { color: var(--amarillo-ladrillo) !important; }
.text-rojo-hld { color: var(--rojo-hld) !important; }

/* ============================================
   BOTONES PROFESIONALES
   ============================================ */

.btn-hld {
    background: linear-gradient(135deg, var(--azul-hld) 0%, var(--azul-oscuro) 100%);
    color: var(--blanco-hld);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-hld::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--rojo-hld) 0%, var(--dorado-hld) 100%);
    transition: left 0.5s ease;
    z-index: 0;
}

.btn-hld:hover::before {
    left: 0;
}

.btn-hld:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(26, 35, 126, 0.4);
    color: var(--blanco-hld);
}

.btn-hld span {
    position: relative;
    z-index: 1;
}

.btn-outline-hld {
    border: 2px solid var(--azul-hld);
    color: var(--azul-hld);
    background: transparent;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-hld:hover {
    background: var(--azul-hld);
    color: var(--blanco-hld);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(26, 35, 126, 0.3);
}

/* ============================================
   CARDS PROFESIONALES
   ============================================ */

.card-profesional {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    background: var(--blanco-hld);
}

.card-profesional:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-profesional .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-profesional:hover .card-img-top {
    transform: scale(1.1);
}

.card-profesional .card-body {
    padding: 2rem;
}

.card-profesional .card-title {
    color: var(--azul-hld);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-profesional .card-text {
    color: var(--gris-texto);
    line-height: 1.7;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.85) 50%, rgba(198, 40, 40, 0.3) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-section p {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--blanco-hld);
    animation: fadeInUp 1.2s ease;
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* ============================================
   SECCIONES
   ============================================ */

section {
    padding: 5rem 0;
    position: relative;
}

section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--dorado-hld) 0%, var(--rojo-hld) 100%);
    border-radius: 2px;
}

/* ============================================
   ICONOS Y CARACTERÍSTICAS
   ============================================ */

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--azul-hld) 0%, var(--azul-oscuro) 100%);
    border-radius: 50%;
    color: var(--dorado-hld);
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(26, 35, 126, 0.3);
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(26, 35, 126, 0.4);
}

/* ============================================
   FOOTER PROFESIONAL
   ============================================ */

footer {
    background: #1a1a1a !important;
    color: var(--blanco-hld);
}

footer a {
    color: var(--blanco-hld);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--rojo-hld);
    transform: translateX(5px);
    display: inline-block;
}

footer .social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

footer .social-icon:hover {
    background: var(--rojo-hld);
    color: var(--blanco-hld);
    transform: translateY(-5px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-section {
        min-height: 50vh !important;
        background-attachment: scroll !important;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .hero-section p {
        font-size: 1rem !important;
    }
    
    .display-3 {
        font-size: 2.5rem !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .display-5 {
        font-size: 1.75rem !important;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .feature-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
    
    .stats-number {
        font-size: 2rem !important;
    }
    
    .card-profesional {
        margin-bottom: 1rem;
    }
    
    /* Mejoras para formularios móviles */
    .form-control,
    .form-select {
        font-size: 16px !important; /* Evita zoom en iOS */
    }
    
    /* Mejorar spacing en móviles */
    .g-4 {
        gap: 1rem !important;
    }
    
    /* Botones en móviles */
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .d-flex.gap-3 a,
    .d-flex.gap-3 button {
        width: 100%;
    }
    
    /* Navbar mobile */
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* ============================================
   UTILIDADES ADICIONALES
   ============================================ */

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.shadow-custom-hover:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.border-dorado {
    border-left: 4px solid var(--dorado-hld);
    padding-left: 1.5rem;
}

.border-rojo {
    border-left: 4px solid var(--rojo-hld);
    padding-left: 1.5rem;
}

.bg-gradient-azul {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
}

.bg-gradient-gris {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
}

.bg-gradient-hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 73, 94, 0.9) 50%, rgba(198, 40, 40, 0.4) 100%);
}

.bg-negro-hld {
    background-color: #1a1a1a !important;
}

.text-gradient-dorado {
    background: linear-gradient(135deg, var(--dorado-hld) 0%, #FFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
