/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #D4A574;
    --secondary-color: #C89565;
    --accent-color: #D4A574;
    --gold-orange: #D4A574;
    --gold-orange-dark: #B8824F;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-dark: #1a1a1a;
    --header-top-bg: #D4A574;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--header-top-bg);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
}

.header-contact-info {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.header-contact-info .auth-menu-top {
    position: relative;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.info-item i {
    font-size: 16px;
}

.info-item span {
    font-size: 14px;
    color: var(--white);
}

.header-auth-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.social-icons a {
    color: var(--white);
    font-size: 22px;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

/* Estilos para autenticación en header-top */
.auth-menu-top {
    position: relative;
    display: flex;
    align-items: center;
}

#authLinkTop {
    color: var(--white);
    transition: opacity 0.3s;
}

#authLinkTop:hover {
    opacity: 0.8;
}

#registerLinkTop {
    color: var(--white);
    transition: opacity 0.3s;
}

#registerLinkTop:hover {
    opacity: 0.8;
}

/* Contenedor de información del usuario */
#userInfoContainer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    gap: 15px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

/* Fallback para navegadores que no soportan gap */
#userInfoContainer > * {
    margin-right: 15px;
}

#userInfoContainer > *:last-child {
    margin-right: 0;
}

#userEmailDisplay {
    color: var(--white);
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

/* Botón de cerrar sesión */
.btn-logout-top {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: var(--white) !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    vertical-align: middle !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    min-width: auto !important;
    height: auto !important;
}

/* Fallback para gap en Chrome antiguo */
.btn-logout-top > * {
    margin-right: 6px;
}

.btn-logout-top > *:last-child {
    margin-right: 0;
}

.btn-logout-top:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    -webkit-transform: translateY(-1px) !important;
    -ms-transform: translateY(-1px) !important;
    transform: translateY(-1px) !important;
}

.btn-logout-top:active {
    -webkit-transform: translateY(0) !important;
    -ms-transform: translateY(0) !important;
    transform: translateY(0) !important;
}

.btn-logout-top i {
    font-size: 12px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}

.btn-logout-top span {
    font-size: 13px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1.4 !important;
}

.user-menu-top {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    margin-top: 10px;
    z-index: 1000;
    overflow: hidden;
}

.user-menu-top a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.3s;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.user-menu-top a:last-child {
    border-bottom: none;
}

.user-menu-top a:hover {
    background: #f5f5f5;
}

.user-menu-top a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.header-main {
    padding: 20px 0;
}

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

.logo img {
    height: 90px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

#adminNavItem {
    display: none;
}

#adminNavLink {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 20px;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
    text-decoration: none;
}

#adminNavLink:hover {
    color: var(--gold-orange);
}

#adminNavLink::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-orange);
    transition: width 0.3s;
}

#adminNavLink:hover::after {
    width: 100%;
}

.nav-separator {
    color: #999;
    margin: 0 15px;
    font-size: 18px;
    -webkit-user-select: none;
    user-select: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 20px;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover {
    color: var(--gold-orange);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
    transition: color 0.3s;
    z-index: 1001;
    position: relative;
}

.menu-toggle:hover {
    color: var(--gold-orange);
}

.menu-toggle i {
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* más transparente: antes 0.5 */
    z-index: 1;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--white);
    clip-path: ellipse(100% 100% at 50% 100%);
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 3;
    padding: 100px 0;
    color: var(--white);
}

.hero-text h6 {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    color: var(--gold-orange);
    line-height: 1.3;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    position: relative;
    padding-left: 25px;
    color: var(--white);
}

.hero-text h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gold-orange);
}

.hero-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--white);
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gold-orange);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: var(--gold-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-orange);
    border: 2px solid var(--gold-orange);
}

.btn-secondary:hover {
    background: var(--gold-orange);
    color: var(--white);
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    padding: 40px 0 70px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    align-items: stretch;
}

.feature-item {
    text-align: center;
    background: var(--white);
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: var(--gold-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.feature-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.feature-item h5 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-item p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-left {
    display: flex;
    flex-direction: column;
}

.about-left h6 {
    font-size: 36px;
    font-weight: 600;
    color: var(--gold-orange);
    margin-bottom: 25px;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.3;
}

.about-left > p {
    font-size: 18px;
    line-height: 1.75;
    color: var(--text-dark);
    margin-bottom: 50px;
    font-weight: 400;
    text-align: justify;
}

.about-image-left-wrapper {
    position: relative;
    width: 100%;
}

.about-image-left-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.experience-box {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 30px 35px;
    border-top: 3px solid var(--gold-orange);
    border-left: 3px solid var(--gold-orange);
    border-right: none;
    border-bottom: none;
    text-align: left;
    box-shadow: none;
}

.experience-box h2 {
    font-size: 72px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin: 0;
    padding: 0;
}

.experience-box h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin: 8px 0 4px 0;
    padding: 0;
}

.experience-box p {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    margin: 0;
    padding: 0;
    font-weight: 400;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-image-top {
    width: 100%;
    height: auto;
    display: block;
}

.objectives-box {
    margin-top: 0;
}

.objectives-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.objectives-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.objectives-header h5 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.objectives-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.objectives-list li {
    padding: 12px 0;
    padding-left: 25px;
    position: relative;
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.7;
}

.objectives-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold-orange);
    font-size: 20px;
    font-weight: bold;
    line-height: 1.7;
}

/* Values Section */
.values-section {
    padding: 100px 0;
    background: var(--white);
}

.values-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.values-list-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    flex: 1;
    align-content: stretch;
}

.values-section h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--gold-orange);
    text-align: left;
}

.values-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    min-height: 100%;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    background: transparent;
    border-radius: 0;
    transition: none;
    flex: 1;
}

.value-item:hover {
    transform: none;
    box-shadow: none;
}

.value-icon-circle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 2px solid var(--gold-orange);
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-icon-circle i {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: bold;
}

.value-item h3 {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
    text-align: center;
    text-transform: uppercase;
}

.values-image {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.values-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Mission Vision Section */
.mission-vision-section {
    padding: 100px 0;
    background: var(--white);
}

.mission-vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.mission-box,
.vision-box {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mission-box h6,
.vision-box h6 {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-orange);
    margin-bottom: 25px;
}

.mission-box p,
.vision-box p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.mission-box img,
.vision-box img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Stats Section - Sección de Estadísticas */
.stats-section {
    padding: 60px 0; /* Espaciado vertical de la sección */
    background: #f5f5f5; /* Fondo gris claro */
    color: var(--text-dark);
    position: relative; /* Permite posicionar el fondo animado de forma absoluta */
    overflow: hidden; /* Oculta el contenido que se salga de los límites */
}

/* Fondo animado con imagen de continentes */
.stats-section::before {
    content: ''; /* Crea un pseudo-elemento para el fondo */
    position: absolute; /* Posiciona el fondo de forma absoluta */
    top: 0; /* Comienza desde arriba */
    left: 0; /* Comienza desde la izquierda */
    right: 0; /* Se extiende hasta la derecha */
    bottom: 0; /* Se extiende hasta abajo */
    background-image: url('imagenes/continentes.jpg'); /* Imagen de fondo de continentes */
    background-size: cover; /* La imagen cubre todo el área */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    opacity: 0.4; /* Opacidad baja para que sea sutil y no compita con el contenido */
    z-index: 0; /* Coloca el fondo detrás del contenido */
    animation: mapMove 30s linear infinite; /* Animación continua del fondo */
}

/* Animación para mover el fondo de continentes */
@keyframes mapMove {
    0% {
        background-position: 0% 0%; /* Posición inicial */
    }
    50% {
        background-position: 100% 100%; /* Posición intermedia */
    }
    100% {
        background-position: 0% 0%; /* Vuelve a la posición inicial */
    }
}

/* Contenedor específico para la sección de estadísticas */
.stats-section .container {
    max-width: 2000px; /* Permite que el panel sea más ancho */
}

/* Panel central con las estadísticas */
.stats-grid {
    position: relative; /* Permite posicionar elementos dentro */
    z-index: 1; /* Coloca el panel por encima del fondo animado */
    display: grid; /* Usa CSS Grid para el layout */
    grid-template-columns: repeat(3, 1fr); /* Tres columnas de igual tamaño */
    gap: 0; /* Sin espacio entre columnas */
    text-align: center; /* Centra el texto horizontalmente */
    background: rgba(255, 255, 255, 0.8); /* Fondo blanco transparente del panel */
    border-radius: 15px; /* Esquinas redondeadas */
    padding: 35px 40px; /* Espaciado interno generoso (vertical horizontal) */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15); /* Sombra sutil para dar profundidad */
    max-width: 2300px; /* Ancho máximo del panel */
    margin: 0 auto; /* Centra el panel horizontalmente */
}

/* Cada item de estadística */
.stat-item {
    padding: 20px 30px; /* Espaciado interno de cada item (vertical horizontal) */
    border-right: 1px solid #000; /* Línea vertical negra separadora a la derecha */
}

/* Elimina el separador del último item */
.stat-item:last-child {
    border-right: none; /* Sin borde en el último elemento */
}

/* Números grandes de las estadísticas */
.stat-number {
    font-size: 72px; /* Tamaño grande del número */
    font-weight: 700; /* Negrita */
    line-height: 1; /* Altura de línea compacta */
    display: inline-block; /* Permite alinear con el sufijo */
    color: var(--gold-orange); /* Color naranja-dorado */
}

/* Sufijos (+ o %) de los números */
.stat-suffix {
    font-size: 48px; /* Tamaño del sufijo (más pequeño que el número) */
    font-weight: 700; /* Negrita */
    display: inline-block; /* Permite alinear con el número */
    color: var(--gold-orange); /* Color naranja-dorado */
}

/* Textos descriptivos de cada estadística */
.stat-item h6 {
    font-size: 24px; /* Tamaño de texto pequeño */
    font-weight: 400; /* Peso normal (no negrita) */
    margin-top: 15px; /* Espacio superior antes del texto */
    text-transform: none; /* Sin transformación (minúsculas como en la imagen) */
    letter-spacing: 0; /* Sin espaciado entre letras */
    color: #000; /* Color negro */
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: var(--white);
}

.services-section .container > h6 {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-orange);
    margin-bottom: 10px;
}

.services-section .container > h3 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 60px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px;
}

.services-section .container > h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: #5cb3cc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: -35px auto 25px;
    background: var(--gold-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
    position: relative;
    z-index: 2;
}

.service-icon img {
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Icono de Cobertura Básica (primera tarjeta) */
.services-grid .service-card:nth-child(1) .service-icon img {
    width: 60px;
    height: 60px;
}

/* Icono de GPS (segunda tarjeta) */
.services-grid .service-card:nth-child(2) .service-icon img {
    width: 40px;
    height: 40px;
}

/* Icono de Cobertura Amplia (tercera tarjeta) */
.services-grid .service-card:nth-child(3) .service-icon img {
    width: 50px;
    height: 50px;
}

.service-card h5 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
    padding: 0 20px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    padding: 0 20px;
    margin-bottom: 30px;
}

.service-card .btn {
    margin-bottom: 30px;
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background: var(--white);
}

.process-section .container > h6 {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-orange);
    margin-bottom: 10px;
}

.process-section .container > h3 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 60px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px;
}

.process-section .container > h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: #5cb3cc;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.process-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.process-item:nth-child(2)::before {
    content: '';
    position: absolute;
    left: -80px;
    top: 80px;
    width: 160px;
    height: 120px;
    background-image: url('imagenes/flecha1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.process-item:nth-child(3)::before {
    content: '';
    position: absolute;
    left: -80px;
    top: 80px;
    width: 160px;
    height: 120px;
    background-image: url('imagenes/flecha2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.process-card {
    position: relative;
    width: 200px;
    height: 200px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.process-icon-image {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

.process-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
    background: var(--gold-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
    z-index: 2;
}

.process-item:nth-child(2) .process-badge {
    bottom: auto;
    top: -15px;
}

.process-item h5 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    margin-top: 0;
}

.process-item p {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
    max-width: 300px;
}


.process-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--text-dark);
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: var(--white);
}

.testimonials-section > h6 {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-orange);
    margin-bottom: 15px;
}

.testimonials-section > h3 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 20px;
}

.testimonials-section > h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #5cb3cc;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.testimonial-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 15px;
}

.testimonial-content {
    flex: 1;
}

.stars {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.stars i {
    color: var(--gold-orange);
    font-size: 18px;
}

.stars span {
    margin-left: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.testimonial-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-content h5 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.testimonial-content h6 {
    font-size: 14px;
    font-weight: 500;
    color: var(--gold-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial-image {
    position: relative;
    width: 150px;
    height: 150px;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-image i {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    background: var(--gold-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: #f9f5f0;
    color: var(--text-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form-wrapper h6 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-form-wrapper h3 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.contact-form-wrapper p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold-orange);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.contact-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: var(--white);
}

.faq-section h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.faq-content {
    max-width: 800px;
    margin: 0 auto 60px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: var(--white);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-question span {
    flex: 1;
    text-align: left;
}

.faq-question i {
    font-size: 14px;
    color: var(--gold-orange);
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px 25px;
}

.faq-answer p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0;
    padding-top: 10px;
}

.whatsapp-btn {
    display: block;
    text-align: center;
    margin: 40px auto 0;
    max-width: 400px;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
}

.whatsapp-btn img {
    width: 100%;
    height: auto;
}

/* Footer - Sección del pie de página */
.footer {
    background: var(--bg-dark); /* Fondo oscuro del footer */
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px
        ); /* Textura de patrón cruzado sutil */
    color: var(--white); /* Color del texto en blanco */
}

/* Contenedor principal del footer */
.footer-main {
    padding: 0; /* Sin padding, se controla desde el container interno */
}

/* Container interno del footer - controla el espacio vertical del recuadro negro */
.footer-main .container {
    padding-top: 32px; /* Espacio superior para separar el texto del borde superior */
    padding-bottom: 32px; /* Espacio inferior para separar el texto del borde inferior */
}

/* Grid con 4 columnas de contenido y 3 columnas vacías para separación */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; /* Cuatro columnas del mismo ancho */
    gap: 40px; /* Espacio entre columnas (reducido para hacer las columnas más anchas) */
}

/* Estilos para los títulos h4 de las columnas (Matriz, Sucursal, Horario, etc.) */
.footer-column h4 {
    font-size: 24px; /* Tamaño de fuente del título */
    font-weight: 600; /* Peso de la fuente (semi-negrita) */
    margin-bottom: 25px; /* Espacio inferior después del título */
    color: var(--white); /* Color blanco para el texto */
}

/* Elimina el margen superior del primer h4 de la primera columna */
.footer-column:first-child h4:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* Lista de elementos de contacto (dirección, email, teléfono) */
.footer-list {
    list-style: none; /* Sin viñetas en la lista */
    margin-bottom: 40px; /* Espacio inferior después de la lista */
}

/* Cada elemento de la lista (cada línea de contacto) */
.footer-list li {
    display: flex; /* Layout flexible para icono y texto */
    align-items: flex-start; /* Alineación al inicio verticalmente */
    gap: 15px; /* Espacio entre el icono y el texto */
    margin-bottom: 20px; /* Espacio entre cada elemento de la lista */
    font-size: 15px; /* Tamaño de fuente del texto */
    line-height: 1.6; /* Altura de línea para mejor legibilidad */
}



/* Iconos dentro de la lista (mapa, email, teléfono) */
.footer-list i {
    font-size: 20px; /* Tamaño de los iconos */
    color: var(--accent-color); /* Color dorado/naranja para los iconos */
    margin-top: 2px; /* Ajuste fino de posición vertical */
    flex-shrink: 0; /* Evita que el icono se comprima */
}

/* Enlaces dentro de la lista (teléfonos) */
.footer-list a {
    color: var(--white); /* Color blanco para los enlaces */
    text-decoration: none; /* Sin subrayado */
    transition: color 0.3s; /* Transición suave al cambiar de color */
}

/* Efecto hover en los enlaces */
.footer-list a:hover {
    color: var(--accent-color); /* Color dorado al pasar el mouse */
}

/* Contenedor de los iconos de redes sociales */
.social-icons-footer {
    display: flex; /* Layout flexible para los iconos */
    gap: 15px; /* Espacio entre iconos */
    margin-bottom: 40px; /* Espacio inferior */
}

/* Cada icono de red social */
.social-icons-footer a {
    width: 45px; /* Ancho del círculo del icono */
    height: 45px; /* Alto del círculo del icono */
    background: rgba(255, 255, 255, 0.1); /* Fondo blanco semitransparente */
    border-radius: 50%; /* Forma circular */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white); /* Color blanco para el icono */
    font-size: 20px; /* Tamaño del icono */
    transition: all 0.3s; /* Transición suave para todos los cambios */
}

/* Efecto hover en los iconos de redes sociales */
.social-icons-footer a:hover {
    background: var(--accent-color); /* Fondo dorado al pasar el mouse */
    transform: translateY(-3px); /* Efecto de elevación */
}

/* Línea divisoria entre Matriz y Sucursal */
.footer-divider {
    width: 100%; /* Ancho completo */
    height: 1px; /* Grosor de la línea */
    background: rgba(255, 255, 255, 0.2); /* Color blanco semitransparente */
    margin: 30px 0; /* Espacio vertical arriba y abajo */
}

/* Columna del logo (tercera columna) */
.footer-column-logo {
    display: flex;
    flex-direction: column; /* Elementos apilados verticalmente */
    align-items: flex-start; /* Alineación a la izquierda */
}

/* Contenedor del logo */
.footer-logo {
    margin-bottom: 30px; /* Espacio inferior después del logo */
}

/* Imagen del logo */
.footer-logo img {
    width: 200px; /* Ancho de la imagen del logo (aumentado de 80px) */
    height: auto; /* Altura automática para mantener proporción */
    margin-bottom: 10px; /* Espacio inferior después de la imagen */
}

/* Texto "MUTUALCONECT" */
.footer-logo h3 {
    font-size: 22px; /* Tamaño de fuente */
    font-weight: 700; /* Negrita */
    color: var(--white); /* Color blanco */
    margin: 0 0 5px 0; /* Sin margen superior, espacio inferior pequeño */
    text-transform: uppercase; /* Texto en mayúsculas */
    letter-spacing: 1px; /* Espaciado entre letras */
}

/* Texto "ASISTENCIA VIAL" */
.footer-logo h5 {
    font-size: 14px; /* Tamaño de fuente más pequeño */
    font-weight: 400; /* Peso normal */
    color: var(--white); /* Color blanco */
    margin: 0; /* Sin márgenes */
    text-transform: uppercase; /* Texto en mayúsculas */
    letter-spacing: 0.5px; /* Espaciado entre letras */
}

/* Contenedor del slogan */
.footer-slogan {
    margin-top: auto; /* Empuja el slogan hacia abajo */
}

/* Texto del slogan */
.footer-slogan p {
    font-size: 14px; /* Tamaño de fuente */
    font-style: italic; /* Texto en cursiva */
    color: var(--white); /* Color blanco */
    margin: 0 0 15px 0; /* Sin margen superior, espacio inferior */
}

/* Línea divisoria debajo del slogan */
.footer-slogan-divider {
    width: 100%; /* Ancho completo */
    height: 1px; /* Grosor de la línea */
    background: rgba(255, 255, 255, 0.3); /* Color blanco semitransparente */
}

.footer-maps {
    padding: 60px 0;
    background: var(--white); /* Fondo blanco para la sección de mapas */
}

.footer-maps .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.map-section h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-dark); /* Color oscuro para el texto sobre fondo blanco */
}

.map-section iframe {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .mission-vision-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid,
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-maps .container {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design - Tablets */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        position: relative;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    /* Menú Hamburguesa */
    .menu-toggle {
        display: block !important;
    }
    
    .nav-menu {
        position: relative;
    }
    
    .nav-menu ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
        gap: 0;
        margin: 0;
        animation: slideInFromRight 0.3s ease-out;
    }
    
    .nav-menu ul.active {
        display: flex;
    }
    
    /* Overlay oscuro cuando el menú está abierto - usando pseudo-elemento del body */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        animation: fadeIn 0.3s ease-out;
    }
    
    @keyframes slideInFromRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    .nav-menu ul li {
        width: 100%;
        padding: 0;
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu ul li:last-child {
        border-bottom: none;
    }
    
    .nav-separator {
        display: none;
    }
    
    .nav-menu ul li a {
        display: block;
        padding: 15px 0;
        width: 100%;
        font-size: 18px;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.3s;
    }
    
    .nav-menu ul li:last-child a {
        border-bottom: none;
    }
    
    .nav-menu ul li a:hover {
        color: var(--gold-orange);
        padding-left: 10px;
    }
    
    .nav-menu ul li a::after {
        display: none;
    }
    
    /* Botón de cerrar en el menú móvil */
    .mobile-menu-close {
        width: 100%;
        padding: 15px 0;
        border-bottom: 2px solid var(--gold-orange);
        margin-bottom: 10px;
    }
    
    .close-menu-btn {
        background: var(--gold-orange);
        color: var(--white);
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.3s;
    }
    
    .close-menu-btn:hover {
        background: var(--gold-orange-dark);
        transform: translateY(-2px);
    }
    
    .close-menu-btn i {
        font-size: 18px;
    }
    
    /* Header Top Responsive */
    .header-top {
        padding: 8px 0;
    }
    
    .header-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .header-contact-info {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        align-items: flex-start;
    }
    
    .header-contact-info .info-item {
        font-size: 12px;
    }
    
    .header-contact-info .info-item span {
        font-size: 12px;
    }
    
    .social-icons {
        width: 100%;
        justify-content: flex-start;
        margin-top: 5px;
    }
    
    /* User Info Container Responsive */
    #userInfoContainer {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        align-items: flex-start;
    }
    
    #userEmailDisplay {
        max-width: 100%;
        font-size: 12px;
    }
    
    .btn-logout-top {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Header Main */
    .header-main {
        padding: 15px 0;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo img {
        height: 60px;
    }
    
    /* Hero Section */
    .hero-text h1 {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    /* Grids Responsive */
    .features-grid,
    .services-grid,
    .process-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .values-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-maps .container {
        grid-template-columns: 1fr;
    }
    
    /* Sections Padding */
    .about-section,
    .services-section,
    .mission-vision-section {
        padding: 60px 0;
    }
    
    /* Process Section Responsive */
    .process-grid {
        gap: 30px;
    }
    
    .process-item::before {
        display: none; /* Ocultar flechas en móvil */
    }
    
    /* FAQ Section Responsive */
    .faq-item {
        margin-bottom: 15px;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 16px;
    }
    
    /* Contact Form Responsive */
    .contact-form {
        padding: 25px;
    }
    
    /* Modal Responsive */
    .auth-modal-content {
        width: 95%;
        max-width: 100%;
        margin: 20px;
        max-height: 95vh;
    }
    
    .auth-modal-body {
        padding: 20px;
    }
    
    /* Footer Responsive */
    .footer-main {
        padding: 30px 0;
    }
    
    .footer-column {
        margin-bottom: 25px;
    }
    
    .footer-maps .container {
        padding: 20px 15px;
    }
}

/* Icon Font Classes - These would need to match the original icon font */
.icon {
    font-family: 'ekiticons' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* ============================================
   ESTILOS PARA SISTEMA DE AUTENTICACIÓN
   ============================================ */

.auth-link {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.auth-link i {
    font-size: 18px;
}

.user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    margin-top: 10px;
    z-index: 1000;
    overflow: hidden;
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.3s;
    border-bottom: 1px solid #eee;
}

.user-menu a:last-child {
    border-bottom: none;
}

.user-menu a:hover {
    background: #f5f5f5;
}

.user-menu a i {
    width: 20px;
    text-align: center;
}

#authMenuItem {
    position: relative;
}

/* Modal de Autenticación */
.auth-modal {
    display: none !important;
    position: fixed !important;
    z-index: 99999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal[style*="display: flex"],
.auth-modal[style*="display:flex"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.auth-modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25), 0 5px 20px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 100000;
    margin: auto;
    border: none;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-modal-header {
    padding: 30px 35px;
    border-bottom: 3px solid var(--gold-orange);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gold-orange-dark) 100%);
    color: var(--white);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.auth-modal-header h2 {
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.auth-modal-close {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-modal-body {
    padding: 35px 40px;
    background: var(--white);
    overflow-y: auto;
    flex: 1;
}

/* Tabs de Login/Registro */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 3px solid #f0f0f0;
    background: #fafafa;
    border-radius: 12px;
    padding: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.auth-tab {
    flex: 1;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.auth-tab:hover {
    color: var(--primary-color);
    background: rgba(212, 165, 116, 0.1);
}

.auth-tab.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gold-orange-dark) 100%);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
    transform: translateY(-1px);
}

/* Formularios de Autenticación */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-form .form-group input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: #fafafa;
    color: var(--text-dark);
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.15), 0 4px 12px rgba(212, 165, 116, 0.1);
    transform: translateY(-1px);
}

.auth-form .form-group input::placeholder {
    color: #999;
}

.form-help {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

.forgot-password-intro {
    margin-bottom: 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--gold-orange-dark);
    text-decoration: underline;
}

.auth-form .form-actions {
    margin-top: 25px;
}

.auth-form .btn-submit {
    width: 100%;
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gold-orange-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4), 0 2px 8px rgba(212, 165, 116, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.auth-form .btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-form .btn-submit:hover:not(:disabled)::before {
    left: 100%;
}

.auth-form .btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--gold-orange-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.5), 0 4px 12px rgba(212, 165, 116, 0.3);
}

.auth-form .btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Mensajes de Autenticación */
.auth-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.auth-message-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #4CAF50;
}

.auth-message-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #f44336;
}

/* Responsive para autenticación */
@media (max-width: 768px) {
    .auth-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .auth-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .auth-tab {
        border-bottom: 2px solid #eee;
        border-left: 3px solid transparent;
    }
    
    .auth-tab.active {
        border-bottom-color: #eee;
        border-left-color: var(--primary-color);
    }
    
    .user-menu {
        right: -10px;
        min-width: 180px;
    }
}
