/* =========================================
   VARIABLES GLOBALES
========================================= */
:root {
    --dark: #070a0e;
    --gold: #d4af37;
    --light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.75);
    --green: #1ca05c;
    --green-hover: #178a4c;
    --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* =========================================
   NAVEGACIÓN — DESKTOP
========================================= */
.site-header {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
}

.site-header.relative { position: relative; }

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
}

.nav-logo { display: block; line-height: 0; }

.logo-img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0px 0px 10px rgba(255,255,255,0.3));
    transition: filter var(--transition), transform var(--transition);
    will-change: transform;
}

.logo-img:hover {
    filter: drop-shadow(0px 0px 15px rgba(212,175,55,0.6));
    transform: scale(1.05);
}

.menu {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.menu li a {
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: inline-block;
    transition: color var(--transition), transform var(--transition);
    padding: 4px 0;
    position: relative;
}

.menu li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.menu li a:hover { color: var(--light); transform: translateY(-2px); }
.menu li a:hover::after { width: 100%; }
.menu li a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

/* =========================================
   MENÚ HAMBURGUESA — MÓVIL
========================================= */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animación a X cuando está abierto */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panel del menú móvil */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(7,10,14,0.98);
    z-index: 150;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: color var(--transition);
}

.mobile-nav a:hover { color: var(--light); }

/* =========================================
   BOTÓN PRINCIPAL
========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212,175,55,0.3);
}

.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.btn:active { transform: translateY(0); }

/* =========================================
   TARJETAS DE SERVICIOS
========================================= */
.services-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
    padding: 0 5%;
    margin-top: 40px;
    margin-bottom: 60px;
}

.card {
    flex: 1;
    padding: 40px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2px;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover { border-color: var(--gold); transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.card h3 { color: var(--gold); margin-bottom: 15px; font-size: 1.3rem; font-weight: 800; }
.card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* =========================================
   UTILIDADES
========================================= */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================
   RESPONSIVE — MÓVIL (≤768px)
========================================= */
@media (max-width: 768px) {
    /* Ocultar menú desktop, mostrar hamburguesa */
    .menu { display: none; }
    .hamburger { display: flex; }

    nav { padding: 14px 6%; }
    .logo-img { height: 55px; }

    .services-container { flex-direction: column; padding: 0 6%; gap: 18px; }
    .card { padding: 24px; }
}

/* =========================================
   RESPONSIVE — TABLET (769px–1024px)
========================================= */
@media (min-width: 769px) and (max-width: 1024px) {
    nav { padding: 14px 6%; }
    .logo-img { height: 75px; }
    .menu { gap: 18px; }
    .menu li a { font-size: 0.82rem; }
    .services-container { flex-wrap: wrap; }
}

/* =========================================
   RESPONSIVE — DESKTOP (>1024px)
========================================= */
@media (min-width: 1025px) {
    .logo-img { height: 100px; }
    .menu { gap: 28px; }
}
