/* ============ VARIABLES ============ */
:root {
    --bronze: #CD7F32;
    --bronze-dark: #8B5A1E;
    --bronze-light: #E8A84A;
    --bg: #080808;
    --bg2: #111111;
    --bg3: #1a1a1a;
    --text: #ffffff;
    --text-muted: #888;
    --text-dim: #333;
}

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

/* ============ BODY ============ */
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
}

/* ============ NAV ============ */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 40px;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    background: linear-gradient(to bottom,
        rgba(8,8,8,1) 0%, rgba(8,8,8,0.95) 60%, rgba(8,8,8,0.8) 85%, transparent 100%);
}
.nav-logo {
    max-height: 32px;
    opacity: 0; transform: translateY(-6px);
    pointer-events: none; transition: opacity 0.5s, transform 0.5s;
}
.nav-logo.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-links { display: flex; gap: 30px; list-style: none; justify-content: center; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-size: 0.8em;
    letter-spacing: 2px; text-transform: uppercase; transition: color 0.3s;
    font-family: 'Orbitron', sans-serif;
}
.nav-links a:hover { color: var(--bronze); }
.nav-btn {
    background: var(--bronze); color: #000; padding: 10px 20px;
    border-radius: 4px; font-family: 'Orbitron', sans-serif; font-size: 0.7em;
    font-weight: 700; letter-spacing: 1px; text-decoration: none;
    transition: 0.3s; justify-self: end;
}
.nav-btn:hover { background: var(--bronze-light); }

/* ============ HAMBURGER ============ */
.hamburger {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    padding: 4px; position: fixed; top: 20px; right: 24px; z-index: 300;
}
.hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--bronze); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--bronze); }

/* ============ MENÚ MÓVIL ============ */
.mobile-menu {
    display: none; position: fixed; inset: 0;
    background: rgba(8,8,8,0.98); z-index: 150;
    flex-direction: column; align-items: center; justify-content: center; gap: 36px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: var(--text-muted); text-decoration: none; font-family: 'Orbitron', sans-serif;
    font-size: 1em; letter-spacing: 3px; text-transform: uppercase; transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--bronze); }
.mobile-menu .mobile-btn {
    background: var(--bronze); color: #000; padding: 16px 36px;
    border-radius: 4px; font-family: 'Orbitron', sans-serif; font-size: 0.85em;
    font-weight: 700; letter-spacing: 2px; text-decoration: none; margin-top: 10px;
}

/* ============ HERO ============ */
@keyframes logoAppear {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    padding: 130px 40px 50px; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(205,127,50,0.05) 0%, transparent 65%);
    pointer-events: none;
}
.hero-logo {
    max-width: 200px; height: auto; position: relative; z-index: 1;
    animation: logoAppear 0.6s ease-out 0.2s both;
}

/* ============ GRID DE CASOS ============ */
.casos-section {
    max-width: 1400px; margin: 0 auto;
    padding: 24px 40px 120px; border-top: 1px solid #151515;
}
.casos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 48px;
}

/* ============ TARJETA DE CASO ============ */
.caso-card {
    background: #121212; border: 1px solid rgba(205,127,50,0.12);
    border-radius: 10px; overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex; flex-direction: column;
}
.caso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(205,127,50,0.12);
    border-color: rgba(205,127,50,0.35);
}
.caso-image-wrapper {
    width: 100%; aspect-ratio: 3 / 2; background: #000;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.caso-image {
    width: 100%; height: 100%; object-fit: contain;
    display: block; transition: transform 0.6s ease;
}
.caso-card:hover .caso-image { transform: scale(1.02); }
.caso-content {
    padding: 32px 32px 28px; display: flex;
    flex-direction: column; gap: 10px; flex: 1;
}
.caso-title {
    font-family: 'Orbitron', sans-serif; font-size: 1.1em;
    font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--bronze); line-height: 1.3;
}
.caso-specs { font-size: 1em; color: #bbb; font-weight: 400; letter-spacing: 0.3px; }
.caso-meta {
    font-family: 'Orbitron', sans-serif; font-size: 0.65em;
    color: #666; letter-spacing: 2px; text-transform: uppercase; margin-top: 4px;
}
.caso-meta .meta-sep { margin: 0 10px; color: var(--bronze-dark); }
.caso-description {
    font-size: 0.95em; line-height: 1.6; color: #bbbbbb;
    border-left: 2px solid var(--bronze); padding: 8px 0 8px 18px; margin-top: 18px;
}

/* ============ ESTADO VACÍO ============ */
.empty-state { text-align: center; padding: 100px 20px; }
.empty-state h2 {
    font-family: 'Orbitron', sans-serif; font-size: 1.3em;
    color: #444; margin-bottom: 16px; letter-spacing: 2px;
}
.empty-state p { color: #666; font-size: 1em; }

/* ============ SKELETON LOADER ============ */
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card {
    background: var(--bg3); border: 1px solid #222; border-radius: 8px; overflow: hidden;
}
.skeleton-image {
    width: 100%; aspect-ratio: 3 / 2;
    background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
.skeleton-content { padding: 32px; }
.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite;
    border-radius: 4px; margin-bottom: 12px;
}
.skeleton-line.title { width: 70%; height: 20px; }
.skeleton-line.specs { width: 50%; }
.skeleton-line.meta  { width: 40%; }

/* ============ FOOTER ============ */
footer {
    padding: 32px 40px; border-top: 1px solid #151515;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}
.footer-logo { max-width: 80px; height: auto; opacity: 0.6; }
.footer-center { text-align: center; flex: 1; }
.footer-text { font-size: 0.7em; color: var(--text-dim); letter-spacing: 1px; font-family: 'Orbitron', sans-serif; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.footer-social { font-size: 0.75em; color: var(--bronze); letter-spacing: 2px; font-family: 'Orbitron', sans-serif; text-decoration: none; transition: color 0.3s; }
.footer-social:hover { color: var(--bronze-light); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .casos-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 900px) {
    nav { padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
    .nav-links, .nav-btn { display: none; }
    .hamburger { display: flex; }
    .hero { padding: 90px 20px 30px; }
    .hero-logo { max-width: 110px; }
}
@media (max-width: 600px) {
    .casos-section { padding: 12px 18px 80px; }
    .casos-grid { gap: 28px; }
    .caso-content { padding: 24px 22px 22px; }
    .caso-title { font-size: 1em; letter-spacing: 1px; }
    .caso-specs { font-size: 0.95em; }
    .caso-description { font-size: 0.9em; padding-left: 14px; margin-top: 14px; }
    .caso-meta { font-size: 0.6em; letter-spacing: 1.5px; }
    .caso-meta .meta-sep { display: block; height: 4px; margin: 0; color: transparent; }
}
@media (max-width: 768px) {
    footer { padding: 24px 20px; flex-direction: column; text-align: center; }
    .footer-right { align-items: center; }
}
