/**
 * Custom CSS - [NOMBRE PROYECTO]
 * Estilos personalizados del proyecto
 *
 * Estructura:
 * 1. Variables y fuentes
 * 2. General / Body
 * 3. Navbar
 * 4. Hero
 * 5. Secciones
 * 6. Footer
 * 7. Formulario
 * 8. Utilidades
 * 9. Responsive
 */

/* ================================================
   1. VARIABLES Y FUENTES
   ================================================ */
:root {
    --color-primary: #333333;
    --color-secondary: #666666;
    --color-accent: #0d6efd;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #dee2e6;
    --font-primary: 'Montserrat', sans-serif;
    --navbar-height: 70px;
}

html {
    scroll-padding-top: calc(var(--navbar-height) + 0px);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* body-padding: para páginas sin hero (navbar fija) */
.body-padding {
    padding-top: calc(var(--navbar-height) + 30px);
}

/* ================================================
   2. NAVBAR
   ================================================ */
.navbar {
    background-color: #ffffff;
    min-height: var(--navbar-height);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand-text {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-primary);
}

.navbar-logo {
    width: auto;
    max-width: 180px;
    display: block;
}

.footer-logo {
    width: auto;
    max-width: 180px;
    display: block;
}

.navbar .nav-link {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #d62828;
}

/* ================================================
   3. HERO
   ================================================ */
.hero {
    min-height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/landing/portada-jm.jpg') center/cover no-repeat;
    padding-top: var(--navbar-height);
    color: #fff;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
}

/* ================================================
   4. SECCIONES
   ================================================ */
.section h1,
.section h2 {
    font-weight: 700;
    margin-bottom: 1rem;
}

#reformas-integrales {
    background: linear-gradient(to bottom, transparent, var(--color-bg-alt));
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-cta {
    background-color: var(--color-primary);
    color: #ffffff;
}

.section-cta h1,
.section-cta h2,
.section-cta h3,
.section-cta p {
    color: #ffffff;
}

/* Placeholder para imágenes (quitar cuando se usen imágenes reales) */
.placeholder-img {
    background-color: #e9ecef;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.section-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--color-text-muted, #6c757d);
    margin-bottom: 0.5rem;
}

.intro-pretitle {
    color: #d62828;
    font-size: 1rem;
    text-transform: uppercase;
}

.card-servicio {
    display: flex;
    flex-direction: column;
}

.card-servicio-img {
    aspect-ratio: 4 / 3;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-servicio-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0;
}

.card-servicio-body h3 a {
    color: #000;
    text-decoration: none;
}

.card-servicio-body h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: #d62828;
    margin: 20px 0;
}

.card-servicio-body p {
    margin-bottom: 0;
}

.bloque-img {
    aspect-ratio: 4 / 3;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 240px;
}

.card-foto {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 1rem;
}

.bloque-foto {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.bloque-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.bloque-detalle .bloque-title {
    margin-bottom: 0;
}

.bloque-detalle .bloque-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: #d62828;
    margin: 20px 0;
}

.resultado-item {
    font-size: 1.1rem;
    font-weight: 700;
    color: #d62828;
    margin-bottom: 0;
}

.btn-rojo {
    background-color: #d62828;
    border-color: #d62828;
    color: #fff;
}

.btn-rojo:hover,
.btn-rojo:focus,
.btn-rojo:active {
    background-color: #b71c1c;
    border-color: #b71c1c;
    color: #fff;
}

.como-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-light, #666666);
}

.paso-numero {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background-color: #d62828;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paso-titulo {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.paso-texto {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.ventaja-icono {
    width: auto;
    max-width: 64px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.ventaja-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ventaja-texto {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ================================================
   5. FOOTER
   ================================================ */
.footer {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 3rem 0 1.5rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-text a,
.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-text a:hover,
.footer-links a:hover {
    color: #ffffff;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    font-size: 0.875rem;
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-legal a:hover {
    color: #ffffff;
}

/* ================================================
   6. FORMULARIO
   ================================================ */
.form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-check-label a {
    color: inherit;
    text-decoration: underline;
}

/* ================================================
   7. RESPONSIVE
   ================================================ */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: 60vh;
    }

    .hero-title {
        font-size: 1.75rem;
    }
}
