/* HOME.CSS - Estilos específicos para la página de inicio */

/* =========================================
   VARIABLES Y COLORES
   ========================================= */
:root {
    --primary-color: #CC5027;
    --primary-dark: #003d63;
    --accent-color: #B71C1C;
    --text-muted: #6c757d;
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Colores personalizados */
.bg-custom-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.text-custom-primary {
    color: var(--primary-color) !important;
}

/* =========================================
   BOTONES
   ========================================= */
.btn-custom-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transition: var(--transition-base);
}

.btn-custom-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 61, 99, 0.3);
}

.btn-outline-custom-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transition: var(--transition-base);
}

.btn-outline-custom-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-base);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    /* Un patrón de fondo sutil si se desea */
    background-image: radial-gradient(#e9ecef 1px, transparent 1px);
    background-size: 20px 20px;
}

.hero-image-container {
    perspective: 1000px;
}

.hero-image-container img {
    transition: var(--transition-base);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.hero-image-container:hover img {
    transform: translateY(-5px) rotateY(-2deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15) !important;
}

.absolute-bg-shape {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background-color: rgba(204, 80, 39, 0.1);
    border-radius: 1rem;
    z-index: 0;
}

/* =========================================
   TARJETAS (CARDS)
   ========================================= */
.card {
    transition: var(--transition-base);
    border: none;
}

.shadow-hover {
    transition: var(--transition-base);
}

.shadow-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.card-img-wrapper {
    overflow: hidden;
    height: 220px;
    position: relative;
}

.card-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(204, 80, 39, 0.05);
    border-radius: 12px;
    transition: var(--transition-base);
}

.card:hover .icon-wrapper {
    background-color: var(--primary-color);
    color: white !important;
}

/* =========================================
   UTILIDADES
   ========================================= */
.min-vh-50 {
    min-height: 50vh;
}

.mw-800 {
    max-width: 800px;
}

.z-index-1 {
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

.opacity-10 {
    opacity: 0.1;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 991.98px) {
    .hero-section .row {
        text-align: center;
    }
    
    .hero-section .d-flex {
        justify-content: center;
    }
    
    .hero-content {
        padding-right: 0 !important;
        margin-bottom: 3rem;
    }
    
    .absolute-bg-shape {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .card-img-wrapper {
        height: 180px;
    }
}
