/* =============================================
   GOOGLE FONTS
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Roboto:wght@300;400;500&display=swap');

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --primary-red: #C62828;
    --accent-orange: #F57C00;
    --accent-yellow: #FFC107;
    --dark-black: #0D0D0D;
    --charcoal: #1F1F1F;
    --light-gray: #E0E0E0;
    --off-white: #F5F5F5;

    --font-title: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* =============================================
   BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--off-white);
    color: var(--charcoal);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--dark-black);
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-orange);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   PRELOADER
   ============================================= */
#preloader {
    position: fixed;
    inset: 0;
    background-color: #ffffff; 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

#preloader.preloader-show {
    opacity: 1;
    visibility: visible;
    transition:
    opacity 150ms ease,
    /* fade-in */
    visibility 150ms ease;
}

#preloader.preloader-hide {
    opacity: 0;
    visibility: hidden;
    transition:
    opacity 500ms ease,
    /* fade-out */
    visibility 500ms ease;
}

.preloader-spinner {
    width: 52px;
    height: 52px;
    border: 5px solid var(--light-gray);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    background-color: var(--dark-black);
    padding: 0.75rem 0;
    border-bottom: 3px solid var(--primary-red);
}

.navbar-brand img {
    height: 52px;
    width: auto;
}

.navbar-nav .nav-link {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--light-gray);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-yellow);
}

.navbar-toggler {
    border-color: var(--light-gray);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background-color: var(--charcoal);
    color: var(--light-gray);
    font-size: 0.9rem;
    padding: 3rem 0 1.5rem;
    border-top: 3px solid var(--primary-red);
}

footer h5 {
    font-family: var(--font-title);
    color: var(--accent-yellow);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

footer p,
footer a {
    color: var(--light-gray);
}

footer a:hover {
    color: var(--accent-yellow);
}

footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

/* =============================================
   BUTTONS
   ============================================= */

/* Primary — Rojo sólido */
.btn-fg-primary {
    background-color: var(--primary-red);
    color: #fff;
    border: 2px solid var(--primary-red);
    font-family: var(--font-title);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.55rem 1.6rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-fg-primary:hover {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #fff;
}

/* Outline — Borde rojo, fondo transparente */
.btn-fg-outline {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    font-family: var(--font-title);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.55rem 1.6rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-fg-outline:hover {
    background-color: var(--primary-red);
    color: #fff;
}

/* Secondary — Gris oscuro sólido */
.btn-fg-secondary {
    background-color: var(--charcoal);
    color: var(--light-gray);
    border: 2px solid var(--charcoal);
    font-family: var(--font-title);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.55rem 1.6rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-fg-secondary:hover {
    background-color: var(--dark-black);
    border-color: var(--dark-black);
    color: var(--accent-yellow);
}

/* =============================================
   SECTION UTILITIES
   ============================================= */
.section-title {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark-black);
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
    margin-top: 0.4rem;
}

.section-title.light {
    color: var(--off-white);
}

.section-title.light::after {
    background-color: var(--accent-yellow);
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #666;
    margin-bottom: 2.5rem;
}

.section-subtitle.light {
    color: var(--light-gray);
}

.section-dark {
    background-color: var(--charcoal);
}

.section-black {
    background-color: var(--dark-black);
}

/* =============================================
   SECTION LABEL
   ============================================= */
.section-label {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-red);
    display: block;
    margin-bottom: 0.4rem;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13,13,13,0.72) 0%, rgba(13,13,13,0.55) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--light-gray);
    max-width: 640px;
    margin: 0 auto 2rem;
}

/* =============================================
   SUPPORTING STRIP
   ============================================= */
.supporting-strip {
    background-color: var(--primary-red);
    padding: 0.85rem 0;
}

.supporting-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 3rem;
    margin: 0;
    padding: 0;
}

.supporting-list li {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.supporting-list li i {
    color: var(--accent-yellow);
}

/* =============================================
   SERVICE CARDS
   ============================================= */
.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.service-card:hover {
    background-color: rgba(198, 40, 40, 0.15);
    border-color: var(--primary-red);
}

.service-card-icon {
    font-size: 2.2rem;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

.service-card h5 {
    font-family: var(--font-title);
    font-size: 1.05rem;
    color: var(--off-white);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin: 0;
}

/* =============================================
   GALLERY THUMBS (Home Preview)
   ============================================= */
.gallery-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-thumb:hover {
    transform: scale(1.03);
    opacity: 0.88;
}

/* =============================================
   TRUST / VALUE STRIP
   ============================================= */
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.trust-item i {
    font-size: 2rem;
    color: var(--accent-yellow);
}

.trust-item p {
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--light-gray);
    margin: 0;
    line-height: 1.3;
}

/* =============================================
   FINAL CTA SECTION
   ============================================= */
.cta-section {
    position: relative;
    background-image: url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 6rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(13, 13, 13, 0.78);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-title);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.05rem;
    color: var(--light-gray);
    max-width: 560px;
    margin: 0 auto 2rem;
}

/* =============================================
   FOOTER EXTRAS
   ============================================= */
.footer-logo {
    height: 200px;
    width: auto;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a,
.footer-contact a {
    font-size: 0.9rem;
}

.footer-links i,
.footer-contact i {
    color: var(--primary-red);
    margin-right: 0.4rem;
    font-size: 0.75rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* =============================================
   PAGE HERO (imagen fija — páginas internas)
   ============================================= */
.page-hero {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(13, 13, 13, 0.68);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 1rem;
}

.page-hero-title {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.page-hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   MISSION / VISION CARDS
   ============================================= */
.mvv-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 2rem;
    height: 100%;
    transition: border-color 0.3s ease;
}

.mvv-card:hover {
    border-color: var(--primary-red);
}

.mvv-card-icon {
    font-size: 2rem;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

.mvv-card h4 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--off-white);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.mvv-card p {
    font-size: 0.95rem;
    color: var(--light-gray);
    margin: 0;
}

/* =============================================
   VALUE ITEMS
   ============================================= */
.value-item {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
    transition: border-color 0.3s ease;
}

.value-item:hover {
    border-color: var(--accent-yellow);
}

.value-item i {
    font-size: 1.8rem;
    color: var(--accent-yellow);
    margin-bottom: 0.75rem;
    display: block;
}

.value-item h6 {
    font-family: var(--font-title);
    font-size: 0.9rem;
    color: var(--off-white);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.value-item p {
    font-size: 0.82rem;
    color: var(--light-gray);
    margin: 0;
}

/* =============================================
   REVIEW CARDS
   ============================================= */
.review-card {
    background-color: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-red);
}

.review-stars {
    color: var(--accent-yellow);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.2rem;
}

.review-text {
    font-size: 0.95rem;
    color: var(--charcoal);
    font-style: italic;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark-black);
}

.review-author i {
    font-size: 1.4rem;
    color: var(--light-gray);
}

/* =============================================
   CONTACT INFO BOX
   ============================================= */
.contact-info-box {
    background-color: var(--dark-black);
    border-radius: 6px;
    padding: 2.5rem;
    height: 100%;
}

.contact-info-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--accent-yellow);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon {
    width: 42px;
    height: 42px;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1rem;
}

.contact-info-list li > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-info-label {
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--light-gray);
}

.contact-info-list a,
.contact-info-list span:not(.contact-info-label) {
    font-size: 0.95rem;
    color: var(--off-white);
}

.contact-info-list a:hover {
    color: var(--accent-yellow);
}

/* =============================================
   CONTACT FORM BOX
   ============================================= */
.contact-form-box {
    background-color: #fff;
    border-radius: 6px;
    padding: 2.5rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.contact-form-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--dark-black);
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.contact-form-box .form-label {
    font-family: var(--font-title);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--charcoal);
    margin-bottom: 0.35rem;
}

.contact-form-box .form-control {
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    color: var(--charcoal);
    background-color: var(--off-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-box .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
    background-color: #fff;
    outline: none;
}

.contact-form-box .form-control.is-invalid {
    border-color: var(--primary-red);
}

/* =============================================
   SERVICE SECTIONS (alternas)
   ============================================= */
.service-section {
    padding: 5rem 0;
    background-color: var(--off-white);
}

.service-section.section-alt {
    background-color: #fff;
}

.service-section.service-emergency {
    background-color: #fff8f8;
}

.service-img {
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.service-section-icon {
    width: 52px;
    height: 52px;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.service-section-icon.emergency {
    background-color: var(--accent-orange);
}

.service-section-title {
    font-family: var(--font-title);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--dark-black);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.service-list-title {
    font-family: var(--font-title);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-red);
    margin: 1.25rem 0 0.75rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--charcoal);
}

.service-list li i {
    color: var(--primary-red);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* =============================================
   WHY CHOOSE US CARDS
   ============================================= */
.why-card {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.why-card:hover {
    border-color: var(--primary-red);
    background-color: rgba(198,40,40,0.1);
}

.why-card i {
    font-size: 2rem;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
    display: block;
}

.why-card h5 {
    font-family: var(--font-title);
    font-size: 1rem;
    color: var(--off-white);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: 0.88rem;
    color: var(--light-gray);
    margin: 0;
}

/* =============================================
   PROCESS STEPS
   ============================================= */
.process-step {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.process-step-number {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 700;
    color: #666;
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.process-step i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    display: block;
}

.process-step h5 {
    font-family: var(--font-title);
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--dark-black);
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* =============================================
   GALLERY ITEMS (LightGallery)
   ============================================= */
.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(198, 40, 40, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-item-overlay i {
    font-size: 1.8rem;
    color: #fff;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* =============================================
   MINI CTA
   ============================================= */
.mini-cta-text {
    font-family: var(--font-title);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--off-white);
    margin: 0;
}
