/* -------------------------------------------------------------
 *  EG Transporte - Hoja de Estilos Principal (Mobile-First)
 * -----------------------------------------------------------*/

/* 1. Variables Globales y Settings */
:root {
    --color-red: #D20A11;
    --color-red-dark: #9E0005;
    --color-dark: #1A1A1A;
    --color-dark-lighter: #262626;
    --color-light: #F4F4F4;
    --color-white: #FFFFFF;
    --color-text: #333333;
    --color-text-muted: #888888;

    --font-main: 'Inter', -apple-system, sans-serif;

    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;

    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
}

/* Utilitarios */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-red {
    color: var(--color-red) !important;
}

.text-white {
    color: var(--color-white) !important;
}

.text-muted {
    color: var(--color-text-muted);
}

.bg-red {
    background-color: var(--color-red);
}

.bg-dark {
    background-color: var(--color-dark);
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.mx-2 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.d-flex {
    display: flex;
}

.d-inline-block {
    display: inline-block;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.align-items-stretch {
    align-items: stretch;
}

.w-100 {
    width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Tipografía */
.section-title {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--color-red);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-red-dark);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-red);
}

.btn-white:hover {
    background-color: #f0f0f0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    font-weight: 900;
    font-size: 1.5rem;
    line-height: 1;
    font-style: italic;
    letter-spacing: -1px;
}

.logo-red {
    color: var(--color-red);
    font-size: 1.8rem;
    margin-right: 4px;
}

.logo-text {
    color: var(--color-dark);
    display: flex;
    flex-direction: column;
}

.logo-text small {
    font-size: 0.6rem;
    letter-spacing: 2px;
    font-weight: 400;
    color: var(--color-text-muted);
    font-style: normal;
    margin-top: -2px;
}

.section-dark .logo-text {
    color: var(--color-white);
}

/* Layout seccion base */
section {
    padding: var(--space-xl) 0;
}

.section-light {
    background-color: var(--color-light);
}

.section-dark {
    background-color: var(--color-dark);
}

.section-red {
    background-color: var(--color-red);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: padding var(--transition-normal);
}

.header.scrolled {
    padding: 0.5rem 0;
}

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

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-dark);
    border-radius: 3px;
    transition: var(--transition-normal);
}

.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.main-nav.active {
    display: block;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
    width: 100%;
    justify-content: flex-end;
}

.nav-link {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--color-text);
    font-style: italic;
    letter-spacing: -0.5px;
}

.nav-link:hover {
    color: var(--color-red);
}

/* Hero */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/IMG_6626.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Propuesta */
.propuesta-seccion p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    font-weight: 400;
}

/* Beneficios */
.list-icon-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.icon-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.icon-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-white);
    margin-top: 2px;
}

/* Servicios */
.servicios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.servicio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.servicio-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.servicio-icon svg {
    width: 40px;
    height: 40px;
}

.servicio-card p {
    font-size: 0.95rem;
    font-weight: 500;
}

.medios-pago-banner {
    background: linear-gradient(to right, #2a0002 0%, #111 50%);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.pago-icon-box {
    position: relative;
    width: 60px;
    height: 60px;
}

.pago-icon-box svg {
    width: 100%;
    height: 100%;
    color: #e5cf9f;
}

.pago-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--color-red);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Destinos */
.destinos-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.destinos-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--color-red);
    color: var(--color-text);
    background-color: var(--color-white);
}

.tag.tag-primary {
    background-color: var(--color-red);
    color: var(--color-white);
}

.map-container {
    width: 100%;
    height: 450px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-grid-wrapper {
    display: grid;
    gap: 8px;
    /* space between dots */
    position: relative;
}

.map-dot {
    width: 8px;
    height: 8px;
    background-color: #d1d1d1;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.map-dot:hover {
    background-color: var(--color-red);
    transform: scale(1.5);
}

.map-cell {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 12px;
    height: 12px;
}

.map-pin {
    width: 16px;
    height: 16px;
    background-color: var(--color-red);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: absolute;
    bottom: 4px;
    box-shadow: 0 4px 6px rgba(210, 10, 17, 0.4);
    animation: bouncePin 2s infinite ease-in-out;
    cursor: pointer;
    z-index: 10;
}

.map-pin::after {
    content: '';
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes bouncePin {

    0%,
    100% {
        transform: rotate(-45deg) translateY(0);
    }

    50% {
        transform: rotate(-45deg) translateY(-6px);
    }
}

/* Contacto */
.contacto-seccion {
    padding: 0;
}

.contacto-layout {
    display: flex;
    flex-direction: column;
}

.contacto-image {
    min-height: 300px;
    background-image: url('../img/IMG_6662.jpg');
    background-size: cover;
    background-position: center;
}

.contacto-form-wrapper {
    padding: var(--space-lg) var(--space-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--color-white);
}

.form-group textarea {
    resize: none;
    margin-top: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icons a {
    color: inherit;
    opacity: 0.8;
}

.social-icons a:hover {
    opacity: 1;
}

.social-icons svg {
    width: 24px;
    height: 24px;
}

/* Sucursales */
.sucursales-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sucursal-card {
    background-color: var(--color-dark);
    padding: 1.5rem;
    text-align: left;
    transition: background-color var(--transition-fast);
}

.sucursal-card:hover {
    background-color: var(--color-dark-lighter);
}

.sucursal-card.focus-card {
    background-color: #3d0000;
    border: 1px solid var(--color-red);
}

/* Footer */
.footer {
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Media Queries Desktop */
@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        padding: 0 2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .menu-toggle {
        display: none;
    }

    .main-nav {
        display: block;
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .nav-list {
        flex-direction: row;
        gap: 2.5rem;
        justify-content: flex-end;
    }

    .grid-2-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 4rem;
    }

    .grid-3-cols {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem 1rem;
    }

    .medios-pago-banner {
        flex-direction: row;
        text-align: left;
        padding: 2rem 4rem;
    }

    .pago-icon-box {
        margin-right: 1.5rem;
        flex-shrink: 0;
        width: 80px;
        height: 80px;
    }

    .destinos-layout {
        flex-direction: row;
        align-items: center;
    }

    .destinos-content {
        flex: 1;
        padding-right: 2rem;
    }

    .destinos-map {
        flex: 1;
        height: 500px;
    }

    .contacto-layout {
        flex-direction: row;
    }

    .contacto-image {
        flex: 1;
        min-height: auto;
    }

    .contacto-form-wrapper {
        flex: 1;
        padding: var(--space-xl);
        display: flex;
        align-items: center;
    }

    .contacto-form-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}