@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --bg-body: #f2f2f2;
    --bg-dark: #111111;
    --bg-panel: #ffffff;
    --bg-panel-alt: #e6e6e6;
    --accent: #cc0000;
    --accent-hover: #990000;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-light: #ffffff;
    --border-color: #d9d9d9;
    --tile-blue: #0078d4;
    --tile-red: #cc0000;
    --tile-charcoal: #2d2d2d;
    --tile-slate: #4a4a4a;
    --tile-steel: #6b6b6b;
    --tile-silver: #b0b0b0;
    --tile-smoke: #808080;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 16px;
    font-weight: 400;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar-custom {
    background-color: var(--bg-dark);
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    min-height: 64px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.navbar-custom .navbar-brand {
    color: var(--text-light);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus {
    color: var(--text-light);
}

.navbar-custom .navbar-nav > li > a {
    color: rgba(255,255,255,0.75);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 22px 18px;
    transition: all 0.2s ease;
}

.navbar-custom .navbar-nav > li > a:hover,
.navbar-custom .navbar-nav > li > a:focus {
    color: var(--text-light);
    background-color: rgba(255,255,255,0.06);
}

.navbar-custom .navbar-nav > li > a > i {
    margin-right: 6px;
    font-size: 14px;
}

.navbar-custom .navbar-toggle {
    border-color: rgba(255,255,255,0.3);
    margin-top: 14px;
    padding: 10px 12px;
}

.navbar-custom .navbar-toggle:hover,
.navbar-custom .navbar-toggle:focus {
    background-color: rgba(255,255,255,0.1);
}

.navbar-custom .navbar-toggle .icon-bar {
    background-color: var(--text-light);
}

/* ===== WRAPPER ===== */
.site-wrapper {
    width: 85%;
    margin: 0 auto;
    max-width: 1440px;
    padding-top: 64px;
}

/* ===== HERO / BIENVENIDA ===== */
.hero-section {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-section .hero-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--bg-dark);
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-section .hero-subtitle {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-section .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent);
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 14px 32px;
    border: none;
    border-radius: 0;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.hero-section .hero-cta:hover {
    background-color: var(--accent-hover);
    color: var(--text-light);
    text-decoration: none;
    transform: translateY(-2px);
}

/* ===== TILE GRID SYSTEM ===== */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0;
    margin-bottom: 8px;
}

.tile {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    z-index: 10;
}

.tile-w2 { grid-column: span 2; }
.tile-w4 { grid-column: span 4; }
.tile-h2 { min-height: 448px; }

.tile-blue { background-color: var(--tile-blue); }
.tile-red { background-color: var(--tile-red); }
.tile-charcoal { background-color: var(--tile-charcoal); }
.tile-slate { background-color: var(--tile-slate); }
.tile-steel { background-color: var(--tile-steel); }
.tile-silver { background-color: var(--tile-silver); }
.tile-smoke { background-color: var(--tile-smoke); }

.tile-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 10px;
}

.tile-desc {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

.tile-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 32px;
    color: rgba(255,255,255,0.25);
}

.tile-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: opacity 0.4s ease, transform 0.6s ease;
}

.tile:hover .tile-img {
    opacity: 0.2;
    transform: scale(1.05);
}

.tile > *:not(.tile-img) {
    position: relative;
    z-index: 2;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 64px 0;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--accent);
}

.section-header .section-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: var(--text-light);
    font-size: 22px;
    margin-right: 20px;
    flex-shrink: 0;
}

.section-header .section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--bg-dark);
    letter-spacing: -0.8px;
    margin: 0;
    line-height: 1.2;
}

.section-header .section-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

/* ===== PANEL CARDS ===== */
.panel-card {
    background-color: var(--bg-panel);
    padding: 40px;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.panel-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.panel-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.panel-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

.panel-card .card-meta {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ===== IMAGES ===== */
.section-img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: filter 0.4s ease, transform 0.5s ease;
    filter: grayscale(20%) contrast(1.05);
}

.section-img:hover {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.02);
}

.img-wrapper {
    overflow: hidden;
    position: relative;
}

.img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
    pointer-events: none;
}

.img-caption {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px;
    background-color: var(--bg-panel);
    margin-top: 0;
}

/* ===== QUOTE BLOCK ===== */
.quote-block {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 48px;
    position: relative;
    margin: 48px 0;
}

.quote-block::before {
    content: '\201C';
    font-size: 120px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    position: absolute;
    top: 20px;
    left: 36px;
    opacity: 0.5;
    font-family: Georgia, serif;
}

.quote-block p {
    font-size: 20px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    padding-left: 20px;
}

/* ===== CONTACT BAR ===== */
.contact-bar {
    background-color: var(--accent);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
    margin: 48px 0;
}

.contact-bar h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.contact-bar p {
    font-size: 15px;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 20px;
}

.contact-bar .contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-bar .contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid rgba(255,255,255,0.4);
    transition: all 0.25s ease;
}

.contact-bar .contact-links a:hover {
    background-color: var(--text-light);
    color: var(--accent);
    border-color: var(--text-light);
    text-decoration: none;
}

/* ===== DIVIDER ===== */
.section-divider {
    height: 3px;
    background-color: var(--bg-dark);
    margin: 0 auto;
    max-width: 120px;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--bg-dark);
    color: rgba(255,255,255,0.5);
    padding: 40px 0;
    text-align: center;
    margin-top: 64px;
}

.site-footer p {
    font-size: 13px;
    letter-spacing: 0.3px;
    margin: 0;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background-color: var(--accent);
    color: var(--text-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .site-wrapper {
        width: 92%;
    }
    .tile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tile-w2 { grid-column: span 2; }
    .tile-w4 { grid-column: span 2; }
    .hero-section .hero-title {
        font-size: 38px;
    }
    .section-header .section-title {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .site-wrapper {
        width: 94%;
        padding-top: 56px;
    }
    .navbar-custom {
        min-height: 56px;
    }
    .navbar-custom .navbar-brand {
        padding: 14px 0;
        font-size: 17px;
    }
    .navbar-custom .navbar-nav > li > a {
        padding: 12px 18px;
        font-size: 12px;
    }
    .tile-grid {
        grid-template-columns: 1fr;
    }
    .tile-w2,
    .tile-w4 { grid-column: span 1; }
    .tile {
        min-height: 180px;
    }
    .tile-h2 {
        min-height: 220px;
    }
    .hero-section {
        padding: 48px 0 40px;
    }
    .hero-section .hero-title {
        font-size: 30px;
    }
    .hero-section .hero-subtitle {
        font-size: 15px;
    }
    .content-section {
        padding: 40px 0;
    }
    .section-header {
        margin-bottom: 28px;
    }
    .section-header .section-title {
        font-size: 22px;
    }
    .panel-card {
        padding: 28px;
        margin-bottom: 16px;
    }
    .quote-block {
        padding: 40px 28px;
    }
    .quote-block p {
        font-size: 16px;
    }
    .contact-bar .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}
