/* =========================
   RESET
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

body {
  background: #f4f6f8;
  color: #111;
}

/* =========================
   HEADER ESTILO SIXT
========================= */
header {
  background: #000;
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header img {
  height: 40px;
}

header a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

header a:hover {
  color: #ff5f00;
}

/* =========================
   CONTENEDOR PRINCIPAL
========================= */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

h1 {
  margin-bottom: 25px;
  font-size: 28px;
  font-weight: 700;
  color: #111;
}

/* =========================
   FORMULARIOS
========================= */
form {
  margin-top: 15px;
}

input,
select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 15px;
  font-size: 14px;
}

input:focus,
select:focus {
  outline: none;
  border-color: #ff5f00;
}

button {
  width: 100%;
  padding: 12px;
  background: #ff5f00;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #e65300;
}

/* =========================
   GRID DE AUTOS
========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* =========================
   TARJETA VEHÍCULO
========================= */
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.25s ease;
  border: 1px solid #eee;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* Imagen dentro de tarjeta */
.card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* Modelo */
.card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

/* Categoría */
.card .categoria {
  font-size: 13px;
  color: #777;
  margin-bottom: 15px;
}

/* Precio grande */
.card .precio-total {
  font-size: 26px;
  font-weight: 800;
  color: #111;
  margin-bottom: 5px;
}

/* Detalle precio */
.card .precio-detalle {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
}

/* Botón dentro tarjeta */
.card button {
  margin-top: auto;
  background: #ff5f00;
  border-radius: 10px;
  font-size: 14px;
}

.card button:hover {
  background: #e65300;
}

/* =========================
   RESUMEN
========================= */
.summary-box {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  margin-top: 20px;
}

.summary-box h3 {
  margin-bottom: 10px;
}

.summary-box hr {
  margin: 15px 0;
  border: none;
  border-top: 1px solid #eee;
}

/* =========================
   MENSAJES
========================= */
.success {
  background: #e6f7ec;
  color: #1a7f37;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.error {
  background: #fde8e8;
  color: #b91c1c;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* ===============================
   HEADER PANEL
=============================== */

.panel-header {
    background: #000;
    color: #fff;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header img {
    height: 40px;
}

.panel-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
}

.panel-container {
    padding: 30px;
    font-family: Arial, sans-serif;
}

/* ===============================
   TABLA RESERVAS
=============================== */

table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

th {
    background: #111;
    color: #fff;
    text-align: left;
    padding: 14px;
    font-weight: 500;
}

td {
    padding: 14px;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background: #f5f5f5;
}

/* ===============================
   COLORES POR ESTADO
=============================== */

.reserva-futura {
    background-color: #e9f8ee;
}

.reserva-hoy {
    background-color: #fff8d6;
}

.reserva-pasada {
    background-color: #fdeaea;
}

/* ===============================
   BOTONES
=============================== */

a {
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    opacity: 0.7;
}

button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background: black;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #333;
}

/* ===============================
   FORM BUSCADOR
=============================== */

form input[type="text"] {
    padding: 10px;
    width: 250px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.acciones-dropdown {
    position: relative;
}


.btn-acciones {
    background: #111;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-acciones:hover {
    background: #333;
}

.acciones-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 9999;
}


.acciones-menu a,
.acciones-menu button {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: left;
    background: none;
    border: none;
    text-decoration: none;
    color: #333;
    cursor: pointer;
    font-size: 14px;
}

.acciones-menu a:hover,
.acciones-menu button:hover {
    background: #f5f5f5;
}

.acciones-dropdown:hover .acciones-menu {
    display: block;
}

table {
    overflow: visible !important;
}

td {
    position: relative;
    overflow: visible;
}


body{
font-family: Arial, Helvetica, sans-serif;
background:#f4f6f9;
margin:0;
padding:40px;
}

h1{
margin-bottom:20px;
}

.container{
max-width:1100px;
margin:auto;
}

.card{
background:white;
padding:25px;
border-radius:10px;
box-shadow:0 4px 12px rgba(0,0,0,0.08);
margin-bottom:20px;
}

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

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

label{
font-weight:bold;
margin-top:10px;
display:block;
}

input,select{
width:100%;
padding:8px;
border-radius:6px;
border:1px solid #ccc;
margin-top:5px;
}

button{
background:#ff5f00;
color:white;
border:none;
padding:12px 25px;
border-radius:6px;
font-weight:bold;
cursor:pointer;
}

button:hover{
background:#e55400;
}

a{
margin-left:15px;
text-decoration:none;
color:#333;
}

.car-preview{
display:flex;
align-items:center;
gap:20px;
}

.car-preview img{
width:160px;
border-radius:10px;
}

.car-info{
font-size:14px;
color:#555;
}

/* HEADER */

.topbar{
display:flex;
align-items:center;
justify-content:space-between;
background:#000;
color:white;
padding:10px 25px;
box-shadow:0 3px 8px rgba(0,0,0,0.2);
}

.topbar img{
height:35px;
}

.title{
font-size:18px;
font-weight:bold;
letter-spacing:1px;
}

.user{
display:flex;
align-items:center;
gap:20px;
font-size:14px;
}

.user a{
color:white;
text-decoration:none;
font-weight:bold;
}

.user a:hover{
color:#ff5f00;
}

.logout{
background:#ff5f00;
padding:6px 12px;
border-radius:6px;
}

.btn-cancelar{
background:#999;
color:white;
padding:10px 20px;
border-radius:6px;
text-decoration:none;
display:inline-block;
margin-left:10px;
}

.btn-cancelar:hover{
background:#777;
}

.btn-volver {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    background: transparent;
    color: #ff5f00;
    border: 2px solid #ff5f00;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-volver:hover {
    background: #ff5f00;
    color: #fff;
    transform: translateX(-3px);
}

.stepper {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
}

.step::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #ddd;
    z-index: -1;
}

.step:last-child::after {
    display: none;
}

.circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ddd;
    color: #555;
    line-height: 35px;
    margin: auto;
    font-weight: bold;
}

.label {
    margin-top: 8px;
    font-size: 13px;
}

/* ACTUAL */
.step.active .circle {
    background: #ff5f00;
    color: white;
}

/* COMPLETADOS */
.step.done .circle {
    background: #28a745;
    color: white;
}

.step.done::after {
    background: #28a745;
}