/* ============================================
   Constructora FADEL S.P.A - Estilos Corporativos
   ============================================ */

:root {
    /* Colores corporativos FADEL */
    --fadel-gris-principal: #808080;
    --fadel-gris-oscuro: #7E7E7E;
    --fadel-gris-claro: #C8C6BD;

    --fadel-verde-oliva: #827D30;
    --fadel-verde-oliva-oscuro: #807D21;

    --fadel-rojo-corporativo: #94121A;
    --fadel-rojo-oscuro: #8D181E;

    --fadel-blanco: #FFFFFF;

    /* Colores derivados */
    --fadel-negro: #1a1a1a;
    --fadel-bg-claro: #f5f4f0;
}

/* ============================================
   Base
   ============================================ */
body {
    font-family: 'Inter', sans-serif;
    color: var(--fadel-gris-principal);
    background-color: var(--fadel-blanco);
}

h1, h2, h3, .display-1 {
    font-family: 'Playfair Display', serif;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fadel-negro) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-brand img {
    height: 45px;
    width: auto;
}
.navbar-brand span {
    color: var(--fadel-rojo-corporativo);
}
.nav-link {
    color: var(--fadel-gris-oscuro) !important;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--fadel-rojo-corporativo) !important;
}

/* ============================================
   Hero - Split Layout
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    padding: 0;
}
.hero-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
}
.hero-content {
    width: 50%;
    background: linear-gradient(135deg, var(--fadel-negro) 0%, #2d2d2d 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5rem;
    position: relative;
}
.hero-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-content > * {
    position: relative;
    z-index: 1;
}
.hero-media {
    width: 50%;
    position: relative;
    overflow: hidden;
}
.hero-media video,
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-media::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(90deg, rgba(26,26,26,0.6) 0%, transparent 100%);
    pointer-events: none;
}
.hero-badge {
    display: inline-block;
    background: rgba(148, 18, 26, 0.15);
    border: 1px solid var(--fadel-rojo-corporativo);
    color: var(--fadel-rojo-corporativo);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--fadel-blanco);
    line-height: 1.1;
}
.hero h1 .accent {
    color: var(--fadel-rojo-corporativo);
}
.hero .lead {
    color: rgba(255,255,255,0.75);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 540px;
}
.hero .btn-accent {
    background: var(--fadel-rojo-corporativo);
    color: var(--fadel-blanco);
    font-weight: 600;
    padding: 0.85rem 2.2rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 1px solid var(--fadel-rojo-oscuro);
    transition: all 0.3s;
}
.hero .btn-accent:hover {
    background: var(--fadel-rojo-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(148, 18, 26, 0.3);
}
.hero .btn-outline-light {
    padding: 0.85rem 2.2rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Hero Image (legacy) */
.hero-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 3px solid rgba(148, 18, 26, 0.4);
}
.hero-image img,
.hero-image video {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}
.hero-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(26,26,26,0.4) 100%);
    pointer-events: none;
}

/* Boton Galeria */
.btn-galeria {
    background: transparent;
    color: var(--fadel-blanco);
    font-weight: 600;
    padding: 0.85rem 2.2rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 1px solid var(--fadel-verde-oliva);
    transition: all 0.3s;
}
.btn-galeria:hover {
    background: var(--fadel-verde-oliva);
    color: var(--fadel-blanco);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(130, 125, 48, 0.3);
}

/* ============================================
   Stats Bar
   ============================================ */
.stats-bar {
    background: var(--fadel-negro);
    border-top: 1px solid rgba(148, 18, 26, 0.3);
}
.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--fadel-rojo-corporativo);
}
.stat-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.3rem;
}

/* ============================================
   Sections
   ============================================ */
.section-title {
    font-size: 2.5rem;
    color: var(--fadel-negro);
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--fadel-verde-oliva);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}
.section-divider {
    width: 60px;
    height: 3px;
    background: var(--fadel-rojo-corporativo);
    margin: 1.2rem auto;
}
section {
    padding: 6rem 0;
}

/* ============================================
   About
   ============================================ */
.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.about-feature .icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(130, 125, 48, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fadel-verde-oliva);
    font-size: 1.3rem;
}
.about-feature h5 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--fadel-negro);
}
.about-feature p {
    font-size: 0.9rem;
    color: var(--fadel-gris-principal);
    margin-bottom: 0;
}

/* ============================================
   Services
   ============================================ */
.service-card {
    background: var(--fadel-blanco);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--fadel-rojo-corporativo);
}
.service-card .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--fadel-gris-oscuro), var(--fadel-negro));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--fadel-rojo-corporativo);
    font-size: 1.8rem;
}
.service-card h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--fadel-negro);
}
.service-card p {
    font-size: 0.9rem;
    color: var(--fadel-gris-principal);
}

/* ============================================
   Projects
   ============================================ */
.project-table {
    background: var(--fadel-blanco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.project-table .table {
    margin-bottom: 0;
}
.project-table .table thead {
    background: var(--fadel-negro);
    color: var(--fadel-blanco);
}
.project-table .table thead th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 1.2rem;
    border: none;
}
.project-table .table tbody td {
    padding: 0.85rem 1.2rem;
    vertical-align: middle;
    font-size: 0.9rem;
    border-color: #f0f0f0;
}
.project-table .table tbody tr:hover {
    background: rgba(148, 18, 26, 0.04);
}
.project-number {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    background: var(--fadel-rojo-corporativo);
    color: var(--fadel-blanco);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Tab Pills */
.nav-pills .nav-link {
    color: var(--fadel-negro) !important;
    font-weight: 600;
    border-radius: 4px;
    padding: 0.7rem 1.5rem;
    margin: 0 0.3rem;
    border: 2px solid transparent;
    text-transform: none;
    letter-spacing: 0;
}
.nav-pills .nav-link.active {
    background: var(--fadel-rojo-corporativo) !important;
    color: var(--fadel-blanco) !important;
}
.nav-pills .nav-link:hover:not(.active) {
    border-color: var(--fadel-rojo-corporativo);
}

/* ============================================
   Galeria
   ============================================ */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.galeria-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.galeria-item:hover img {
    transform: scale(1.08);
}
.galeria-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(148, 18, 26, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.galeria-overlay i {
    color: var(--fadel-blanco);
    font-size: 2rem;
}
.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

/* Lightbox */
.galeria-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.galeria-lightbox.active {
    display: flex;
}
.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox-caption {
    color: rgba(255,255,255,0.7);
    margin-top: 1rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--fadel-blanco);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 1rem;
    transition: color 0.3s;
    z-index: 10000;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--fadel-rojo-corporativo);
}
.lightbox-close {
    top: 1.5rem;
    right: 2rem;
}
.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}
.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 992px) {
    .galeria-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 576px) {
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Contact
   ============================================ */
.contact-section {
    background: var(--fadel-negro);
    color: var(--fadel-blanco);
}
.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.8rem;
}
.contact-info-item .icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(148, 18, 26, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fadel-rojo-corporativo);
    font-size: 1.2rem;
}
.contact-info-item h6 {
    color: var(--fadel-verde-oliva);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
}
.contact-info-item p {
    margin-bottom: 0;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}
.contact-form .form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--fadel-blanco);
    padding: 0.85rem 1.2rem;
    border-radius: 4px;
}
.contact-form .form-control:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--fadel-rojo-corporativo);
    box-shadow: 0 0 0 0.2rem rgba(148, 18, 26, 0.2);
    color: var(--fadel-blanco);
}
.contact-form .form-control::placeholder {
    color: rgba(255,255,255,0.4);
}

/* ============================================
   Buttons
   ============================================ */
.btn-accent {
    background: var(--fadel-rojo-corporativo);
    color: var(--fadel-blanco);
    font-weight: 600;
    padding: 0.85rem 2.2rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 1px solid var(--fadel-rojo-oscuro);
    transition: all 0.3s;
}
.btn-accent:hover {
    background: var(--fadel-rojo-oscuro);
    color: var(--fadel-blanco);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(148, 18, 26, 0.3);
}

/* Barra decorativa FADEL */
.barra-fadel {
    background-color: var(--fadel-verde-oliva);
    height: 4px;
    width: 100%;
}

/* Acento verde oliva */
.acento-fadel {
    color: var(--fadel-verde-oliva);
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: #111;
    color: rgba(255,255,255,0.5);
    padding: 2rem 0;
    font-size: 0.85rem;
}

/* ============================================
   WhatsApp Button
   ============================================ */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}
.whatsapp-btn:hover {
    background: #1ebe5d;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}
.whatsapp-btn:active {
    transform: scale(0.95);
}

/* ============================================
   Animations
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero-split {
        flex-direction: column;
    }
    .hero-content {
        width: 100%;
        padding: 6rem 2rem 3rem;
        min-height: auto;
    }
    .hero-media {
        width: 100%;
        height: 300px;
    }
    .hero-media::after {
        display: none;
    }
    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .stat-number { font-size: 2rem; }
    section { padding: 4rem 0; }
    .nav-pills .nav-link { font-size: 0.8rem; padding: 0.5rem 0.8rem; margin-bottom: 0.3rem; }
}
