/* ===================================================
   INICIO — Santos Transportes
   =================================================== */

body {
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    position: relative;
    z-index: 100;
}

/* ===================================================
   VIDEO DE FONDO
   =================================================== */
.home_video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -2;
    background: var(--color-white);
}

.home_video video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100vw;
    min-height: 100vh;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    background: transparent;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.35);
    z-index: 1;
}

/* Header transparente en la home */
body.home-page .header-bar {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
}

body.home-page .header-bar.scrolled {
    box-shadow: none;
}

/* ===================================================
   LOGO + NOMBRE "SANTOS"
   =================================================== */
.title {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.logo_nombre {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.logo {
    width: 155px;
    height: auto;
    opacity: 0;
    transform: translateX(120px);
    animation: revealLogo 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.nombre {
    font-family: var(--font-hero) !important;
    font-weight: 900 !important;
    font-size: 90px !important;
    color: var(--color-primary) !important;
    line-height: 0.85 !important;
    margin: 0 !important;
    padding-left: 10px;
    letter-spacing: 1px !important;
    opacity: 0;
    transform: translateX(-150px);
    animation: revealNombre 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.1s;
}

/* ===================================================
   MENÚ DE NAVEGACIÓN
   =================================================== */
.menu {
    margin-top: 35px;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 45px;
}

.menu a {
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0;
    display: inline-block;
    animation: fadeUp 0.8s ease forwards;
    transition: color var(--ease-default);
    position: relative;
}

.menu a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    border-radius: 2px;
    transition: width var(--ease-default);
}

.menu a:hover {
    color: var(--color-primary);
}

.menu a:hover::after {
    width: 100%;
}

/* Retrasos cascada */
.menu li:nth-child(1) a { animation-delay: 1.1s; }
.menu li:nth-child(2) a { animation-delay: 1.3s; }
.menu li:nth-child(3) a { animation-delay: 1.5s; }

/* ===================================================
   BOTÓN CONTACTAR
   =================================================== */
.btn-home-contactar {
    display: inline-block;
    margin-top: 100px;
    padding: 16px 60px;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--ease-default);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1.7s;
}

.btn-home-contactar:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ===================================================
   ANIMACIONES
   =================================================== */
@keyframes revealLogo {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes revealNombre {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media screen and (max-width: 850px) {
    .logo_nombre { flex-direction: column; }
    .nombre {
        font-size: 70px !important;
        letter-spacing: -2px !important;
        padding-left: 0;
    }
    .logo { width: 110px; }
    .menu ul { flex-direction: column; align-items: center; gap: 15px; }
    .menu a { font-size: 18px; letter-spacing: 3px; }
}
