/* =========================================================
   VARIABLES DE MARCA
========================================================= */
:root {
    --gf-red: #d90f1b;
    --gf-red-dark: #b80c16;
    --gf-black: #1f1f1f;
    --gf-text: #333;
    --gf-gray: #f4f4f4;
    --gf-border: #e5e5e5;
}

/* =========================================================
   BASE / RESET
========================================================= */
body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--gf-text);
    background: #fff;
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--gf-black);
    font-weight: 600;
}

h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
}

h2 {
    font-size: 38px;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 26px;
}

h4 {
    font-size: 22px;
}

h5 {
    font-size: 18px;
}

p {
    font-size: 16px;
    color: #444;
}

/* =========================================================
   PLACEHOLDERS
========================================================= */
.ph {
    background: #e9ecef;
    border: 2px dashed #adb5bd;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ph-sm {
    height: 80px;
}

.ph-md {
    height: 220px;
}

.ph-lg {
    height: 420px;
}

/* =========================================================
   HEADER (STICKY)
========================================================= */
.gf-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--gf-border);
}

.gf-nav a,
.gf-lang a {
    font-size: 14px;
    text-decoration: none;
    color: var(--gf-black);
    font-weight: 500;
}

.gf-nav a:hover,
.gf-nav a.active {
    color: var(--gf-red);
}

/* =========================================================
   HERO HOME – SLIDER FINAL (1920x900)
========================================================= */

.gf-home-hero {
    position: relative;
    width: 100%;

    /* Ratio correcto para tus imágenes */
    aspect-ratio: 1920 / 900;

    /* Control visual */
    min-height: 460px;
    max-height: 760px;

    overflow: hidden;
    background: white;
    /* fallback */
}

/* Contenedor del slider */
.gf-hero-slider {
    position: absolute;
    inset: 0;
}

/* Imágenes */
.gf-hero-slider img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    /* La imagen se adapta a la ALTURA */
    object-fit: scale-down;

    /* 🔑 Si hay recorte, es SOLO desde la izquierda */
    object-position: center;

    display: block;

    opacity: 0;
    transition: opacity 1s ease;
}

.gf-hero-slider img.active {
    opacity: 1;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
    .gf-home-hero {
        min-height: 340px;
        max-height: 420px;
    }

    .gf-hero-slider img {
        object-position: right top;
    }
}

/* =========================================================
   HERO SUBPÁGINAS
========================================================= */
.gf-hero {
    background: var(--gf-red);
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gf-hero h1 {
    color: #fff;
    font-size: 48px;
}

/* =========================================================
   CARDS
========================================================= */
.gf-card,
.gf-empresa-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.gf-card {
    padding: 28px;
}

.gf-card:hover,
.gf-empresa-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .12);
}

.gf-empresa-card {
    overflow: hidden;
}

.gf-empresa-img {
    height: 220px;
    transition: transform .4s ease;
}

.gf-empresa-card:hover .gf-empresa-img {
    transform: scale(1.03);
}

.gf-empresa-body {
    padding: 22px;
}

.gf-empresa-body p {
    font-size: 15px;
    margin-bottom: 18px;
}

/* =========================================================
   BOTONES
========================================================= */
.btn-danger {
    background: var(--gf-red);
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: background .25s ease, transform .25s ease;
}

.btn-danger:hover {
    background: var(--gf-red-dark);
    transform: translateY(-2px);
}

.btn-outline-danger {
    color: var(--gf-red);
    border-color: var(--gf-red);
}

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

/* =========================================================
   FORM
========================================================= */
.form-control,
.form-select {
    border-radius: 8px;
    padding: 10px 14px;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
    background: var(--gf-red);
    color: #fff;
}

footer p,
footer a {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
}

/* =========================================================
   SCROLL ANIMATIONS
========================================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-delay-1 {
    transition-delay: .1s;
}

.fade-up-delay-2 {
    transition-delay: .2s;
}

.fade-up-delay-3 {
    transition-delay: .3s;
}

/* =========================================================
   SOBRE NOSOTROS – CARDS
========================================================= */
.gf-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.gf-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .12);
}

.gf-info-card i {
    font-size: 44px;
    color: var(--gf-red);
    margin-bottom: 18px;
    display: inline-block;
}

.gf-info-card h5 {
    font-size: 18px;
    margin-bottom: 12px;
}

.gf-info-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* =========================================================
   PROYECTOS
========================================================= */
.gf-project-card {
    border-radius: 18px;
    padding: 32px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gf-project-card.bg-success {
    background: #0f6b3d !important;
}

/* =========================================================
   CONTACTO – ICONOS
========================================================= */
.gf-contact-info p {
    margin-bottom: 22px;
    font-size: 15px;
}

.gf-contact-info i {
    font-size: 34px;
    color: var(--gf-red);
    margin-bottom: 6px;
    display: inline-block;
}

/* =========================================================
   WHATSAPP FLOATING BUTTON
========================================================= */
.gf-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;

    display: flex;
    align-items: center;
    gap: 10px;

    background: #25d366;
    color: #fff;
    text-decoration: none;

    padding: 14px 18px;
    border-radius: 40px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .25);
    font-size: 15px;
    font-weight: 500;

    transition: all .25s ease;
}

.gf-whatsapp i {
    font-size: 22px;
    color: #fff;
}

.gf-whatsapp:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .35);
    color: #fff;
}

@media (max-width: 768px) {
    .gf-whatsapp {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        bottom: calc(16px + env(safe-area-inset-bottom));
        right: 16px;
    }

    .gf-whatsapp-text {
        display: none;
    }

    .gf-whatsapp i {
        font-size: 26px;
    }
}

/* =========================
   FOOTER – REDES SOCIALES
========================= */

.gf-footer-socials a {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);

    color: #fff;
    font-size: 20px;

    transition: all .25s ease;
}

.gf-footer-socials a:hover {
    background: #fff;
    color: var(--gf-red);
    transform: translateY(-3px);
}

.gf-footer-socials a:hover .bi-facebook {
    color: #1877f2;
}

.gf-footer-socials a:hover .bi-instagram {
    color: #e4405f;
}

.gf-footer-socials a:hover .bi-linkedin {
    color: #0a66c2;
}