/* =========================================
   VARIABLES GLOBALES
   ========================================= */
:root {
    --primary-color: #E30613;
    --primary-dark: #aa040e;
    --dark-bg: #1f1f1f;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-main: #FFFFFF;
    --text-muted: #D0D0D0;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
}

/* =========================================
   RESET & BASICS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' style='font-size:24px'><text y='24'>🏗️</text></svg>"), auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' style='font-size:24px'><text y='24'>📐</text></svg>"), pointer;
}

button, .menu-toggle {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' style='font-size:24px'><text y='24'>📐</text></svg>"), pointer;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

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

/* Helper Classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.pt-0 { padding-top: 0 !important; }
.text-xl { font-size: 2rem; color: var(--primary-color); margin-bottom: 1rem;}
.highlight { color: var(--primary-color); text-shadow: 0px 2px 10px rgba(227,6,19,0.2); }
.neutral-bg { background-color: #252525; }
.justify-center { justify-content: center; }

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary, .btn-secondary, .btn-primary-outline {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.6);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-primary-outline {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
}
.btn-primary-outline:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-text:hover { gap: 12px; }

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: #FFFFFF;
    border-top: 4px solid var(--primary-color);
    border-bottom: 1px solid #EBEBEB;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}
.navbar.scrolled {
    padding: 10px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 65px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-primary-outline) {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #444444;
    padding: 8px 12px;
    position: relative;
    transition: var(--transition);
}
.nav-links a:not(.btn-primary-outline)::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 3px; background-color: var(--primary-color);
    transition: var(--transition); border-radius: 2px;
}
.nav-links a:not(.btn-primary-outline):hover::after {
    width: 80%;
}
.nav-links a:not(.btn-primary-outline):hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #111111;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION (Split Layout & Slider)
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 150px;
    padding-bottom: 100px;
    overflow: hidden;
}

/* Background Slider */
.hero-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlide 18s infinite;
}

.slide-1 { animation-delay: 0s; }
.slide-2 { animation-delay: 6s; }
.slide-3 { animation-delay: 12s; }

@keyframes fadeSlide {
    0% { opacity: 0; transform: scale(1.05); }
    10% { opacity: 1; transform: scale(1); }
    33% { opacity: 1; transform: scale(1); }
    43% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

.slider-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(30,30,30,0.85) 0%, rgba(30,30,30,0.7) 50%, rgba(30,30,30,0.5) 100%);
    z-index: 2;
}

/* Hero Grid Content */
.hero-content-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.hero-text-side {
    max-width: 600px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: #FFF;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #F0F0F0;
    margin-bottom: 2.5rem;
}

.hero-trust {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-trust p {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.2rem;
}
.hero-trust ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.9rem;
    color: #D0D0D0;
    font-size: 1rem;
}
.hero-trust ul li i {
    color: var(--primary-color);
}

/* Feature Videos Column */
.hero-media-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-video-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: var(--transition);
}
.feature-video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.4);
}

.media-link {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    word-break: break-all;
}
.media-link i {
    font-size: 1rem;
    color: var(--primary-color);
    margin-left: 5px;
}
.media-link:hover { color: var(--primary-color); }

.video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
}
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    transition: opacity 0.3s;
}

/* =========================================
   SECTIONS
   ========================================= */
.section { padding: 100px 0; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 3rem; }

/* Editorial Section */
.editorial-section {
    background: linear-gradient(rgba(10, 10, 10, 0.88), rgba(10, 10, 10, 0.88)), url('assets/arch_bg4_1775586449363.png') center/cover fixed;
}
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(227, 6, 19, 0.15);
    color: #ff3344;
    border: 1px solid rgba(227,6,19,0.3);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.editorial-text h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.slogan-text {
    font-size: 1.5rem;
    font-weight: 300;
    color: #fff;
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.description { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.1rem; }

.experience {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.1);
}
.experience i { font-size: 2.5rem; color: var(--primary-color); }
.experience strong { display: block; font-size: 1.2rem; color: #fff; }
.experience span { font-size: 0.9rem; color: var(--text-muted); }

.glass-card {
    background: rgba(30, 30, 30, 0.65);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.glass-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.glass-card p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Medios Secion */
.medios-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.medio-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius);
    padding: 40px 20px;
    width: 100%;
    max-width: 480px; /* Responsive size constraint */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}
.medio-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
}
.medio-card h3 { font-size: 1.2rem; font-weight: 500; }
.medio-desc { font-size: 1rem; color: #B0B0B0; text-align: center; }

.medio-video-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: transparent;
    width: 100%;
    padding-bottom: 56.25%;
}
.medio-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    transition: var(--transition);
}
.medio-card:hover .medio-video-wrapper video {
    transform: scale(1.05);
}

.medios-note { font-size: 0.95rem; color: var(--text-muted); }
.medios-note a { color: var(--primary-color); text-decoration: underline; }

/* Servicios Section */
.servicios-section {
    background: linear-gradient(rgba(30, 30, 30, 0.7), rgba(30, 30, 30, 0.75)), url('assets/arch_bg5_1775586466774.png') center/cover fixed;
}
.card-feature {
    background: linear-gradient(145deg, rgba(35,35,35,0.9) 0%, rgba(20,20,20,0.95) 100%);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 60px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.card-feature::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff5500);
}
.feature-icon {
    width: 80px; height: 80px;
    background: rgba(227, 6, 19, 0.15);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; margin: 0 auto 1.5rem auto;
}
.card-feature p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: #000000;
    padding: 80px 0 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.9fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-logo { height: 55px; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); max-width: 400px; }

.footer-links h3, .footer-contact h3 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-links ul li { margin-bottom: 0.8rem; display: flex; align-items: center; gap: 8px;}
.footer-links ul li i { color: var(--primary-color); font-size: 0.8rem; }
.footer-links ul li a { color: var(--text-muted); }
.footer-links ul li a:hover { color: #fff; text-decoration: underline; }

.footer-contact ul li { margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.footer-contact ul li i { color: var(--primary-color); }
.footer-contact ul li a { color: var(--text-muted); }
.footer-contact ul li a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); color: #777; font-size: 0.9rem; }

/* =========================================
   WHATSAPP FLOAT
   ========================================= */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; background-color: #25D366; color: #FFF;
    border-radius: 50px; text-align: center; font-size: 32px;
    box-shadow: 0 5px 20px rgba(37,211,102,0.4); z-index: 100;
    width: 65px; height: 65px; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #1EBE55; box-shadow: 0 8px 25px rgba(37,211,102,0.6); }

/* =========================================
   ANIMATIONS (Scroll Observer)
   ========================================= */
.fade-in { opacity: 0; transform: translateY(25px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-up { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-right { opacity: 0; transform: translateX(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.appear { opacity: 1; transform: translate(0); }

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .hero-content-grid { grid-template-columns: 1fr; gap: 3rem; margin-top: 60px; }
    .hero-text-side { text-align: center; margin: 0 auto; }
    .hero-cta { justify-content: center; }
    .editorial-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-title { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .slider-overlay { background: linear-gradient(180deg, rgba(30,30,30,0.9) 0%, rgba(30,30,30,0.7) 100%); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta a { width: 100%; text-align: center; }
    
    .menu-toggle { display: block; color: #111; }
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 80%; max-width: 300px;
        background: #FFFFFF;
        flex-direction: column; justify-content: center; padding: 40px;
        transition: right 0.4s ease; box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.2rem; width: 100%; text-align: left; margin-bottom: 10px;}
    
    .medios-grid { flex-direction: column; align-items: center; }
}
