/* =============================================
   PrefabHome — Reusable Components
   ============================================= */

/* --- Navbar --- */
#mainNav {
    padding: 1rem 0;
    transition: var(--transition);
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
}

#mainNav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* --- Buttons --- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* --- Model Cards --- */
.model-card {
    transition: all 0.4s ease;
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-img-wrapper img {
    transition: transform 0.6s ease;
    height: 250px;
    object-fit: cover;
}

.model-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.model-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-card {
    border: 2px solid var(--primary);
    position: relative;
}

.featured-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.featured-card:hover::before {
    opacity: 1;
}

/* --- Feature Boxes --- */
.feature-box {
    background: var(--light);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-box:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

/* --- Process Cards --- */
.process-card {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.process-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s;
}

.process-card:hover .process-icon {
    transform: rotate(10deg) scale(1.1);
}

.process-number {
    font-size: 3rem;
    font-weight: 800;
    color: #e2e8f0;
    font-family: var(--font-body);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- Contact Icons --- */
.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* --- Forms --- */
.form-control,
.form-select {
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* --- Social Links --- */
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-5px);
}

/* --- Gallery Cards --- */
.gallery-card {
    transition: var(--transition);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
}

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

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

.gallery-caption {
    background: white;
}

.gallery-img-contain {
    object-fit: contain;
    background: #ffffff;
    height: 320px;
}

.gallery-img-lg {
    height: 320px;
    object-fit: contain;
    background: #ffffff;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-lg {
    transform: scale(1.05);
}



/* =============================================
   Costos y Financiación — New Section Styles
   ============================================= */

/* --- Cost Factor Cards --- */
.cost-factor-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.cost-factor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* --- Payment Cards --- */
.payment-card {
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.payment-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.payment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.payment-card:hover::before {
    transform: scale(2);
}

.payment-step-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.3rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Contact Section Redesign --- */
.contact-section {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    position: relative;
}

.contact-info-card {
    background: white;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}

.contact-icon-lg {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon-lg {
    transform: scale(1.1) rotate(-5deg);
}

/* --- Trabaja con nosotros button --- */
.trabaja-btn {
    border-color: #fbbf24;
    color: #fbbf24;
    transition: var(--transition);
}

.trabaja-btn:hover {
    background: #fbbf24;
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251,191,36,0.3);
}
