/*
    Hoja de estilos principal de D’Luxe Car Rental.
    Mobile-first y optimizada para mantener un peso reducido.
    Reemplazar las imágenes ubicadas en /assets/img/ por versiones definitivas cuando estén disponibles.
*/

:root {
    --color-principal: #0f1d3b;
    --color-secundario: #c7a258;
    --color-texto: #1d1a16;
    --color-texto-suave: #5e5548;
    --color-fondo: #f8f4ed;
    --color-fondo-suave: #efe5d7;
    --color-borde: #d7c6a9;
    --fuente-principal: 'Helvetica Neue', Arial, sans-serif;
    --sombra-suave: 0 10px 30px rgba(15, 29, 59, 0.12);
    --transicion: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--fuente-principal);
    color: var(--color-texto);
    background-color: var(--color-fondo);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--color-principal);
}

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

.contenedor {
    width: min(92%, 1100px);
    margin: 0 auto;
}

/* Encabezado fijo */
.encabezado {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(248, 244, 237, 0.9);
    box-shadow: 0 2px 12px rgba(15, 29, 59, 0.12);
    backdrop-filter: blur(6px);
}

.encabezado__contenido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-principal);
    letter-spacing: 0.08em;
}

.navegacion {
    position: relative;
}

.navegacion__lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.98);
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--sombra-suave);
}

.navegacion__lista a {
    font-weight: 600;
}

.navegacion__toggle {
    background: none;
    border: none;
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

.navegacion__barra {
    width: 24px;
    height: 2px;
    background-color: var(--color-texto);
    transition: transform var(--transicion);
}

.navegacion__toggle[aria-expanded="true"] + .navegacion .navegacion__lista,
.navegacion__lista.activo {
    display: flex;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    color: #ffffff;
}

.hero__slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__slide.activo {
    opacity: 1;
    z-index: 1;
}

.hero__texto {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 2rem 1.5rem;
    gap: 1rem;
    background: linear-gradient(90deg, rgba(15, 29, 59, 0.85) 0%, rgba(15, 29, 59, 0.6) 45%, rgba(15, 29, 59, 0.2) 100%);
}

.hero__texto > * {
    width: min(32rem, 100%);
}

.hero__texto h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.hero__texto p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.hero__control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    transition: background-color var(--transicion);
    z-index: 2;
}

.hero__control:hover,
.hero__control:focus {
    background-color: rgba(0, 0, 0, 0.65);
}

.hero__control--prev {
    left: 1rem;
}

.hero__control--next {
    right: 1rem;
}

.hero__indicadores {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.hero__indicador {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background-color var(--transicion), transform var(--transicion);
}

.hero__indicador.activo {
    background-color: var(--color-secundario);
    transform: scale(1.2);
}

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #c7a258 0%, #b38a3b 100%);
    color: #1d1a16;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform var(--transicion), box-shadow var(--transicion);
}

.hero__texto .boton {
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    align-self: flex-start;
}

.boton:hover,
.boton:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 29, 59, 0.18);
}

.boton--secundario {
    background: var(--color-principal);
    color: #f8f4ed;
}

.seccion {
    padding: 4rem 0;
}

.seccion--nosotros {
    background-color: var(--color-fondo-suave);
}

.seccion__grid {
    display: grid;
    gap: 2rem;
}

.seccion__descripcion {
    color: var(--color-texto-suave);
    max-width: 640px;
}

.seccion__imagen {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
}

.grid-vehiculos {
    margin-top: 2.5rem;
    display: grid;
    gap: 1.5rem;
}

.tarjeta {
    background-color: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    display: flex;
    flex-direction: column;
    transition: transform var(--transicion), box-shadow var(--transicion);
}

.tarjeta:hover,
.tarjeta:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 29, 59, 0.18);
}

.tarjeta img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tarjeta__contenido {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tarjeta__lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
    color: var(--color-texto-suave);
}

.seccion--contacto {
    background-color: var(--color-fondo-suave);
}

.contacto__detalles {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    gap: 0.75rem;
}

.contacto__detalles a {
    color: var(--color-principal);
    font-weight: 600;
}

.formulario {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--sombra-suave);
    display: grid;
    gap: 1.25rem;
}

.formulario__grupo {
    display: grid;
    gap: 0.5rem;
}

.formulario__grupo--doble {
    display: grid;
    gap: 1rem;
}

.formulario label {
    font-weight: 600;
}

.formulario input,
.formulario textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-borde);
    font-size: 1rem;
    transition: border-color var(--transicion), box-shadow var(--transicion);
    font-family: inherit;
    background-color: #fffdf8;
}

.formulario input:focus,
.formulario textarea:focus {
    outline: none;
    border-color: var(--color-secundario);
    box-shadow: 0 0 0 3px rgba(199, 162, 88, 0.25);
}

.formulario__mensaje {
    min-height: 1.25rem;
    color: var(--color-principal);
    font-weight: 600;
}

.pie {
    background: radial-gradient(circle at top, #18284a 0%, #0a1022 60%, #050814 100%);
    color: #ffffff;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.pie__grid {
    display: grid;
    gap: 2rem;
}

.pie__lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.pie__lista--horizontal {
    grid-auto-flow: column;
    gap: 1rem;
}

.pie__lista a {
    color: #ffffff;
    font-weight: 600;
}

.pie__texto {
    color: #d9ceb8;
}

.pie__texto--legal {
    margin: 0.5rem 0 0;
    color: #b8a889;
    font-size: 0.85rem;
}

.pie__legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Medias queries para pantallas más anchas */
@media (min-width: 720px) {
    .navegacion__lista {
        position: static;
        display: flex !important;
        flex-direction: row;
        gap: 1.5rem;
        background: none;
        box-shadow: none;
        padding: 0;
    }

    .navegacion__toggle {
        display: none;
    }

    .hero__control--prev {
        left: 2rem;
    }

    .hero__control--next {
        right: 2rem;
    }

    .seccion__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
    }

    .grid-vehiculos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .formulario__grupo--doble {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pie__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-vehiculos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero__texto {
        padding-left: 8%;
    }

    .hero__texto h1 {
        max-width: 520px;
    }

    .hero__texto p {
        max-width: 420px;
    }
}
/* ===== HERO: capas correctas y clics ===== */
.hero { position: relative; }

/* El contenedor del slider se queda detrás, pero NO intercepta clics.
   Ojo: no ponemos pointer-events:none aquí para no desactivar controles. */
.hero__slider { position: relative; height: 100vh; overflow: hidden; }

/* Cada slide ocupa todo el área, se desvanece y NO bloquea clics */
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  z-index: 1;
  pointer-events: none;          /* <- clave: el slide no tapa el botón */
}
.hero__slide.activo {
  opacity: 1;
}

/* La imagen solo cubre */
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;          /* la imagen tampoco tapa */
}

/* Texto encima y clicable */
.hero__texto {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 2rem 1.5rem;
  gap: 1rem;
  background: linear-gradient(90deg, rgba(15,29,59,.85) 0%, rgba(15,29,59,.6) 45%, rgba(15,29,59,.2) 100%);
  z-index: 2;
  pointer-events: auto;          /* <- recibe los clics */
}

/* Controles y dots por encima y clicables */
.hero__control,
.hero__indicadores {
  position: absolute;
  z-index: 3;
  pointer-events: auto;
}
/* Logo + texto alineados en la barra */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;               /* espacio entre icono y texto */
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-principal);
  letter-spacing: 0.08em;
}

/* Ajusta la altura visual del logo dentro del header */
.logo__img {
  height: 28px;              /* prueba 24–32px según tu header */
  width: auto;               /* mantiene proporción */
  display: block;
}

/* Si necesitas que el texto no se rompa raro */
.logo__texto { white-space: nowrap; }

/* En pantallas estrechas puedes reducir un poco el tamaño */
@media (max-width: 360px) {
  .logo__img { height: 24px; }
  .logo { font-size: 1.1rem; }
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-principal);
}

.logo__badge {
  width: 32px;                /* ajusta 28–36 según tu header */
  height: 32px;
  border-radius: 50%;
  background: var(--color-principal);   /* azul marino */
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(15,29,59,.15);
}

.logo__img {
  height: 18px;               /* 16–20 según proporción del ícono */
  width: auto;
  display: block;
}

@media (max-width: 360px) {
  .logo__badge { width: 28px; height: 28px; }
  .logo__img { height: 20px; }
  .logo { font-size: 1.1rem; }
}
/* === Ajuste final del logo === */
.logo__badge {
  width: 40px;     /* 36–40px según prefieras */
  height: 40px;
  display: grid;
  place-items: center;
}

.logo__badge .logo__img {
  width: 84%;      /* cuánto “llena” el círculo: 72–88% */
  height: 88%;
  object-fit: contain;
  display: block;
}
/* Añade al final de tu CSS */
.wa-float{
  position:fixed; right:16px; bottom:16px;
  background:#25D366; color:#fff; font-weight:700;
  padding:.75rem 1rem; border-radius:999px;
  box-shadow:0 10px 30px rgba(0,0,0,.2); z-index:999;
}
.wa-float:hover{ filter:brightness(.95); }
/* Tarjeta CTA a ancho completo en desktop */
.tarjeta--cta {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--sombra-suave);
  grid-column: 1 / -1;     /* ocupa toda la fila disponible */
}
.tarjeta--cta .tarjeta__contenido { max-width: 720px; }
/* Ajustes CTA */
.tarjeta--cta {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2.5rem 2rem;
}

.tarjeta--cta .tarjeta__contenido {
  max-width: 720px;
  display: grid;
  justify-items: center;   /* centra título, párrafo y botón */
  gap: 1rem;
}

.tarjeta--cta .boton {
  color: #fff; /* texto blanco en el botón */
}
.mapa{
  position:relative; padding-bottom:56.25%; height:0;
  overflow:hidden; border-radius:1rem; box-shadow:var(--sombra-suave);
  background:#e9e5dc;
}
.mapa iframe{
  position:absolute; inset:0; width:100%; height:100%; border:0;
}
.mapa__acciones{ margin-top:1rem; }
/* ===== Sello Pro-DG clickeable (esquina inferior derecha) ===== */
.prodg-badge{
  position: fixed;
  right: calc(14px + env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: 112px;                 /* ajusta tamaño */
  height: 112px;
  display: inline-grid;
  place-items: center;
  z-index: 60;                  /* sobre contenido, bajo modales si los hubiera */
  opacity: .10;                 /* visibilidad sutil */
  transition: opacity .25s ease, transform .25s ease;
}

.prodg-badge img{
  max-width: 100%;
  max-height: 100%;
  display: block;
  pointer-events: none;         /* el click lo recibe el <a>, no la imagen */
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.15));
}

.prodg-badge:hover,
.prodg-badge:focus{
  opacity: .22;
  transform: translateY(-2px);
}

/* En móvil: más pequeño y más tenue */
@media (max-width: 640px){
  .prodg-badge{
    width: 78px;
    height: 78px;
    opacity: .08;
    right: calc(12px + env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

/* Si en alguna vista no quieres mostrarlo, añade class="no-badge" al <body> */
body.no-badge .prodg-badge{ display: none !important; }
