/* estilos generales */

/* colores reutilizables */
:root {
    --bg-page: #000000;
    --bg-header: #070707;
    --bg-panel: #0c0c0c;
    --violeta: #8b5cf6;
    --violeta-oscuro: #6d28d9;
    --blanco: #FFFFFF;
    --gris: #A0AABF;
    --negro: #000000;
}

/* ajustes base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    cursor: pointer;
    user-select: none;
}

body {
    background: #000000;
    background-color: var(--bg-page);
    font-family: 'Arial', sans-serif;
    color: var(--blanco);
}

body.mis-autos {
    background: #000000;
    background-color: var(--bg-page);
    height: 100vh;
    margin: 0;
}

/* textos */
.title {
    font-family: 'Arial', sans-serif;
    color: var(--blanco);
    font-size: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-shadow: -4px 4px 6px rgba(0, 0, 0, 0.829);
}

.p2-p3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.description {
    font-family: 'Arial', sans-serif;
    color: rgba(255, 255, 255, 0.849);
    font-size: 18px;
    padding-top: 12px;
    line-height: 1.4;
    text-shadow:
        #000000 0px 0px 4px;
}

/* encabezado */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 20px 10px;
    background: var(--bg-header);
}

.header-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.header-row-top {
    justify-content: center;
}

.header-row-bottom {
    justify-content: space-between;
    gap: 12px;
}

/* navegación */
.logo-box {
    width: 120px;
    height: 40px;
    background-image: url('img/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-left: 0;
}

.logo-img {
    width: 70px;
    height: 40px;
    background-image: url('img/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.header h1 {
    position: absolute;
    left: 20%;
    top: 3.5%;
    transform: translateX(-50%);
    margin: 0;
}

.logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    left: 10%;
    padding: 6px;
    background: #090c13;
}

.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    position: static;
    transform: none;
}

.nav-links li {
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 16px;
    height: 18px;
}

.nav-links li:first-child {
    border-left: none;
    padding-left: 0;
}

.nav-links a {
    position: relative;
    color: rgba(228, 232, 240, 0.8);
    text-decoration: none;
    transition: color 0.25s ease;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 0;
    display: inline-block;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: var(--violeta);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-links a:hover {
    color: var(--violeta);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* botones */
.botones-accion {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.botones-accion button,
.boton-nav {
    padding: 8px 14px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.botones-accion form {
    display: flex;
    margin: 0;
    padding: 0;
}

.botones-accion form button {
    border: none;
    background: #ff4d4d;
    color: #FFFFFF;
    padding: 8px 16px;
}

.botones-accion form button:hover {
    background: #e63946;
}

/* perfil */
.boton-perfil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 13px !important;
    border: 1px solid rgba(124, 36, 211, 0.65);
    border-radius: 999px !important;
    background: rgba(124, 36, 211, 0.14);
    color: var(--blanco);
    box-shadow: 0 4px 14px rgba(124, 36, 211, 0.18);
    text-decoration: none;
}

.perfil-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid var(--violeta);
    border-radius: 50%;
    color: var(--violeta);
    font-size: 10px;
    line-height: 1;
}

.boton-perfil:hover {
    background: var(--violeta);
    border-color: var(--violeta);
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(124, 36, 211, 0.35);
}

.boton-perfil:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
}

.boton-flotante-gestor,
.boton-flotante-admin {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 18px 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: linear-gradient(135deg, #8b5cf6, #5b21b6);
    color: var(--blanco);
    box-shadow: 0 12px 28px rgba(42, 17, 91, 0.42), 0 0 0 5px rgba(139, 92, 246, 0.12);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.boton-flotante-gestor:hover,
.boton-flotante-admin:hover {
    filter: brightness(1.08);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(42, 17, 91, 0.5), 0 0 0 6px rgba(139, 92, 246, 0.18);
}

.boton-flotante-gestor:focus-visible,
.boton-flotante-admin:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.boton-flotante-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 20px;
    line-height: 1;
}

.boton-nav.btn-login {
    border: 1px solid var(--violeta);
    background: transparent;
    color: var(--blanco);
    box-shadow: inset 0 0 0 1px rgba(124, 36, 211, 0.2);
    border: 1px solid rgba(124, 36, 211, 0.5);
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 0 10px rgba(124, 36, 211, 0.25);
}

.boton-nav.btn-login:hover {
    background: var(--violeta);
    color: var(--blanco);
}

.boton-nav.btn-register {
    border: none;
    background: var(--violeta);
    color: var(--blanco);
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 0 10px rgba(124, 36, 211, 0.25);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
}

.boton-nav.btn-register:hover {
    background: var(--violeta-oscuro);
    transform: translateY(-1px);
}

.boton-nav.btn-admin {
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
    color: var(--blanco);
}

.boton-nav.btn-admin:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* portada */
.hero1 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        url('img/index.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    padding-top: 80px;
}

.hero1 button {
    margin-top: 25px;
    padding: 12px 22px;
    border: none;
    border-radius: 5px;
    background: var(--violeta);
    color: var(--blanco);
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 450;
    box-shadow: 0 0 10px rgba(124, 36, 211, 0.25);
    font-size: 17px;
}

.hero1 button:hover {
    background: var(--violeta-oscuro);
}

.p1,
.p2,
.p3 {
    display: inline-block;
    margin: 0;
    line-height: 1.1;
    font-size: 51px;
}

.p1,
.p2 {
    color: #FFFFFF;
}

.p3 {
    color: #7C24D3;
}

/* información */
.info-section {
    position: relative;
    background: #ffffff;
    padding: 80px 20px 90px;
    margin-top: -10px;
    overflow: visible;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 520px);
    align-items: center;
    gap: 40px;
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08),
        0 18px 40px rgba(15, 23, 42, 0.08),
        0 18px 40px rgba(15, 23, 42, 0.08),
        0 18px 40px rgba(15, 23, 42, 0.08);
}

.info-copy {
    color: #101828;
}

.section-tag {
    display: inline-block;
    background: rgba(124, 36, 211, 0.12);
    color: var(--violeta);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.info-copy h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 18px;
    color: #0f172a;
}

.info-copy p {
    color: #475467;
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 550px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.info-list li {
    position: relative;
    padding-left: 28px;
    color: var(--violeta);
    font-size: 1rem;
    font-weight: 700;
}

.info-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--violeta);
    font-size: 2rem;
    line-height: 1;
}

.info-image-wrap {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    justify-self: end;
    z-index: 2;
}

.info-image-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 22px;
    box-shadow: 0 30px 40px rgba(10, 15, 29, 0.2);
    border: 6px solid #ffffff;
}

/* vehículos */
.mis-vehiculos-page {
    min-height: 100vh;
    background: #000000;
    background-image: radial-gradient(circle at 8% 12%, rgba(139, 92, 246, 0.16), transparent 30%),
        radial-gradient(circle at 92% 88%, rgba(109, 40, 217, 0.12), transparent 32%),
        linear-gradient(135deg, #050505 0%, #000000 55%, #090510 100%);
    background-attachment: fixed;
}

.vehicles-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px 90px;
}

.vehicles-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.vehicles-header h1 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.vehicles-header p {
    color: #c4c9d6;
    font-size: 1.05rem;
}

.add-vehicle-button,
.vehicle-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    border-radius: 8px;
    background: var(--violeta);
    color: var(--blanco);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}


.add-vehicle-button span:first-child {
    font-size: 24px;
    font-weight: 400;
    line-height: 0.7;
}

.add-vehicle-button:hover,
.vehicle-login-link:hover {
    background: var(--violeta-oscuro);
    transform: translateY(-2px);
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.vehicle-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid #e4e7ec;
    border-top: 4px solid var(--violeta);
    border-radius: 12px;
    background: #ffffff;
    color: #101828;
    font-family: Georgia, 'Times New Roman', serif;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.13);
}

.vehicle-card:focus-within,
.vehicle-card:focus-visible {
    outline: 3px solid rgba(139, 92, 246, 0.28);
    outline-offset: 3px;
}

.vehicle-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.vehicle-type {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vehicle-plate {
    padding: 5px 9px;
    border: 1px solid #d0d5dd;
    border-radius: 5px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.vehicle-card h2 {
    margin-bottom: 22px;
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 700;
}

.vehicle-details {
    display: grid;
    gap: 12px;
}

.vehicle-details p {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    color: #475467;
    font-size: 14px;
}

.vehicle-details strong {
    color: #667085;
    font-weight: 600;
}

.vehicle-description {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eaecf0;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}

.vehicle-edit-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #eaecf0;
    font-family: 'Trebuchet MS', sans-serif;
    color: var(--violeta-oscuro);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.vehicle-edit-link span {
    font-size: 20px;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.vehicle-card:hover .vehicle-edit-link span,
.vehicle-card:focus-within .vehicle-edit-link span {
    transform: translateX(4px);
}

.vehicle-edit-link:hover {
    color: var(--violeta);
    padding-left: 4px;
}

.vehicles-message {
    padding: 60px 24px;
    border: 1px dashed #cfd4dc;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
}

.vehicles-message h2 {
    margin: 16px 0 10px;
    color: #0f172a;
}

.vehicles-message p {
    max-width: 520px;
    margin: 0 auto 24px;
    color: #667085;
    line-height: 1.6;
}

.vehicle-auth-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.vehicle-auth-button {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--violeta);
    border-radius: 6px;
    background: var(--violeta);
    color: var(--blanco);
    font-weight: 700;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.vehicle-auth-button:hover {
    background: var(--violeta-oscuro);
    border-color: var(--violeta-oscuro);
    transform: translateY(-1px);
}

.vehicle-auth-button-secondary {
    background: transparent;
    color: var(--violeta-oscuro);
}

.vehicle-auth-button-secondary:hover {
    background: #f3edfc;
    border-color: var(--violeta-oscuro);
    color: var(--violeta-oscuro);
}

.empty-vehicles-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 2px solid var(--violeta);
    border-radius: 50%;
    color: var(--violeta);
    font-size: 38px;
    font-weight: 300;
    line-height: 1;
}

.vehicles-error {
    border-color: #fda29b;
    color: #b42318;
}

.vehicle-toast {
    position: fixed;
    top: 84px;
    right: 24px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.16);
    font-size: 14px;
    font-weight: 700;
    animation: mostrar-toast 0.3s ease-out, ocultar-toast 0.5s ease-in 4.5s forwards;
}

.vehicle-toast-success {
    border-color: #b8e3d4;
    color: #126451;
}

.vehicle-toast-error {
    border-color: #f3bdc1;
    color: #b42318;
}

.vehicle-toast-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: currentColor;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

@keyframes mostrar-toast {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ocultar-toast {
    to {
        opacity: 0;
        transform: translateY(-10px);
        visibility: hidden;
    }
}

@media (max-width: 600px) {
    .vehicle-toast {
        top: 72px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}

/* mapa */
.map-section {
    background: #f5f7fb;
    padding: 80px 20px;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 40px;
}

.map-copy {
    color: #101828;
}

.map-copy h2 {
    color: #0f172a;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 18px;
}

.map-copy p {
    color: #475467;
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 5px;
    background: var(--violeta);
    color: var(--blanco);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.map-link:hover {
    background: var(--violeta-oscuro);
}

.map-frame-wrap {
    min-height: 380px;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.map-frame-wrap iframe {
    width: 100%;
    height: 380px;
    display: block;
    border: 0;
}

/* búsqueda de talleres */
.workshop-filter-section {
    background: #ffffff;
    padding: 34px 20px 42px;
}

.workshop-filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 34px;
    border: 1px solid #e4e7ec;
    border-left: 5px solid var(--violeta);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.workshop-filter-copy h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.workshop-filter-copy p {
    max-width: 640px;
    margin-bottom: 24px;
    color: #475467;
    line-height: 1.6;
}

.workshop-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 14px;
}

.workshop-filter label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.workshop-filter select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #ffffff;
    color: #101828;
    font: inherit;
    cursor: pointer;
}

.workshop-filter select:focus-visible,
.workshop-filter-submit:focus-visible {
    outline: 3px solid rgba(139, 92, 246, 0.28);
    outline-offset: 2px;
}

.workshop-filter-submit {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background: var(--violeta);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.workshop-filter-submit:hover {
    background: var(--violeta-oscuro);
    transform: translateY(-1px);
}

.workshop-filter-status {
    margin-top: 16px;
    color: #667085;
    font-size: 13px;
}

.workshop-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.workshop-result {
    padding: 18px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #f8f9fc;
}

.workshop-result h3 {
    margin-bottom: 8px;
    color: #101828;
    font-size: 16px;
}

.workshop-result p {
    margin-bottom: 8px;
    color: var(--violeta-oscuro);
    font-size: 13px;
    font-weight: 700;
}

.workshop-result small {
    color: #475467;
    line-height: 1.5;
}

.workshop-map-link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--violeta-oscuro);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.workshop-map-link:hover {
    color: var(--violeta);
    text-decoration: underline;
}

/* elementos comunes */
section:not(.hero1):not(.info-section):not(.top-band) {
    padding: 50px 20px;
}

.card {
    background: #151B2B;
    padding: 20px;
    border-radius: 10px;
    flex: 1 1 250px;
}

/* tarjetas de vehículos */
.tarjeta-auto {
    background: rgba(21, 27, 43, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 5px solid #7C24D3;
    border-radius: 12px;
    padding: 22px;
    margin: 15px;
    min-width: 280px;
    max-width: 340px;
    color: #FFFFFF;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tarjeta-auto:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(43, 123, 255, 0.25);
    border-left-color: #00E5FF;
}

.tarjeta-auto .placa {
    background: linear-gradient(135deg, #7C24D3, #6415B6);
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    float: right;
    text-transform: uppercase;
}

.tarjeta-auto h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #FFFFFF;
}

.tarjeta-auto p {
    color: #A0AABF;
    font-size: 14px;
    margin: 6px 0;
}

.tarjeta-auto p strong {
    color: #FFFFFF;
}

.tarjeta-auto .btn-agendar {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 10px 0;
    background: #7C24D3;
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.tarjeta-auto .btn-agendar:hover {
    background: #6415B6;
    transform: scale(1.02);
}

/* formularios */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* campos de texto */
input,
textarea,
form button {
    padding: 10px;
    border-radius: 5px;
    border: none;
}

/* aspecto de los campos */
input,
textarea {
    background: #151B2B;
    color: #FFFFFF;
}

/* botón del formulario */
form button {
    background: #7C24D3;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background: #6415B6;
}

/* pie de página */
.footer {
    background: #080b11;
    color: var(--blanco);
    padding: 20px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 20px;
}

.footer-brand .logo-box {
    width: fit-content;
    margin-bottom: 16px;
}

.footer-brand p,
.footer-column p {
    color: var(--gris);
    line-height: 1.6;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.footer-column h3 {
    margin-bottom: 6px;
    font-size: 16px;
    color: var(--blanco);
}

.footer-column a {
    color: var(--gris);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--violeta);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    color: var(--gris);
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

/* ventanas emergentes */
/* modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #151B2B;
    color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.7);
    width: 80%;
    max-width: 400px;
}

/* cerrar modal */
.boton-cerrar {
    color: #A0AABF;
    float: right;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    margin-top: -10px;
    transition: color 0.3s ease;
}

.boton-cerrar:hover {
    color: #FFFFFF;
}

.logout-dialog {
    width: min(440px, calc(100vw - 32px));
    max-width: none;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.42);
    border-radius: 10px;
    background: #151B2B;
    color: #FFFFFF;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.72);
}

.logout-dialog[open] {
    animation: logout-dialog-in 180ms ease both;
}

.logout-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
}

.logout-dialog-content {
    padding: 28px;
}

.logout-dialog-kicker {
    color: #B794F6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logout-dialog h2 {
    margin: 10px 0 8px;
    color: #FFFFFF;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 22px;
    line-height: 1.3;
}

.logout-dialog p {
    color: #B8BDCA;
    font-size: 14px;
    line-height: 1.5;
}

.logout-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.logout-dialog-actions button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.logout-cancel {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: transparent;
    color: #E1E3EA;
}

.logout-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
}

.logout-confirm-button {
    background: #7C24D3;
    color: #FFFFFF;
}

.logout-confirm-button:hover {
    background: #6415B6;
}

.logout-dialog-actions button:focus-visible {
    outline: 3px solid rgba(183, 148, 246, 0.7);
    outline-offset: 2px;
}

@keyframes logout-dialog-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    width: 100%;
    max-width: none;
    height: 100%;
    padding: 16px;
    transform: none;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.72);
    box-shadow: none;
    backdrop-filter: blur(3px);
    animation: login-backdrop-in 180ms ease both;
}

.auth-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(400px, calc(100vw - 32px));
    max-height: calc(100% - 32px);
    overflow-y: auto;
    padding: 36px 32px 32px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(139, 92, 246, 0.38);
    border-radius: 10px;
    background: #151B2B;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.72);
    animation: login-modal-in 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.auth-dialog--register {
    width: min(500px, calc(100vw - 24px));
    padding: 28px 26px 24px;
}

.auth-dialog--register h2 {
    margin-top: 2px;
}

.auth-dialog--register h5 {
    margin-bottom: 14px;
}

.auth-dialog--register form {
    gap: 10px;
}

.register-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
}

.register-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.register-field label {
    margin: 0;
}

.register-field input {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 9px 11px;
}

.auth-dialog--register form button {
    min-height: 42px;
    margin-top: 2px;
}

.auth-dialog .boton-cerrar {
    position: absolute;
    top: 16px;
    right: 18px;
    float: none;
    margin: 0;
    font-size: 24px;
}

.auth-dialog h2 {
    margin: 8px 0 7px;
    color: #FFFFFF;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.auth-dialog h5 {
    margin-bottom: 20px;
    color: #B8BDCA;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.auth-dialog form {
    gap: 9px;
}

.auth-dialog label {
    margin-top: 5px;
    color: #E1E3EA;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.auth-dialog input {
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid #C5C8D1;
    border-radius: 6px;
    background: #E2E3E8;
    color: #171923;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 14px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.auth-dialog input::placeholder {
    color: #656A76;
    opacity: 1;
}

.auth-dialog input:focus {
    outline: none;
    border-color: var(--violeta);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.24);
}

.auth-dialog form button {
    min-height: 46px;
    margin-top: 12px;
    border-radius: 6px;
    background: #7C24D3;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 15px;
    font-weight: 700;
    transition: filter 180ms ease, transform 180ms ease;
}

.auth-dialog form button:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

@keyframes login-modal-in {
    from {
        opacity: 0;
        transform: translate(-50%, -46%) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes login-backdrop-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-modal {
        animation: none;
    }

    .auth-dialog {
        animation: none;
    }
}

/* ajustes para pantallas chicas */
@media (max-width: 900px) {
    .info-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .info-image-wrap {
        justify-self: center;
        width: min(100%, 520px);
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    /* encabezado */
    .header {
        flex-direction: column;
        gap: 15px;
    }

    /* navegación en filas */
    .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    /* quita el margen de la navegación */
    .navbar a {
        margin-left: 0;
    }

    /* mapa e información en columna */
    .map-container {
        grid-template-columns: 1fr;
    }

    .workshop-filter-container {
        padding: 24px 20px;
    }

    .workshop-filter {
        grid-template-columns: 1fr;
    }

    .workshop-filter-submit {
        width: 100%;
    }

    .map-frame-wrap,
    .map-frame-wrap iframe {
        height: 300px;
        min-height: 300px;
    }

    /* pie de página en columna */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .vehicles-section {
        padding-top: 45px;
    }

    .vehicles-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .add-vehicle-button {
        width: 100%;
    }

}
