:root {
  --bg-main: #f8fafc;
  --surface: #ffffff;
  --surface-card: #ffffff;
  --border: #e2e8f0;

  --text-main: #0f172a;
  --text-muted: #475569;

  --accent-blue: #0284c7;
  --accent-cyan: #0ea5e9;
  --accent-hover: #0369a1;
  --second-modal-color: rgba(34,34,34,0.95);

  /* WhatsApp oficial */
  --whatsapp-green: #25d366;
  --whatsapp-hover: #1eb956;
  
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-stack);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
}

/* Navegación */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

nav {
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 0 auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.25s ease;

}

.nav-links a:hover {
  color: var(--accent-blue);
}

/* Boton Menu Hamburguesa*/
.panel {
    position: fixed;
    z-index: 998;
    top:0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--second-modal-color);
    transition: transform .3s ease;
    /*menu salga de la derecha*/
    transform: translate(100%,0);
}

.panel.is-active {
    transform: translate(0,0);
}

.panel-btn {
    position: fixed;
    z-index: 999;
    bottom: 1vh;
    right: 1vw;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    padding: 0;
    display:flex;
    justify-content: center;
    align-items: center;
}

.menu {
    width: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    padding-top: 5rem;
}

.menu a {
    padding: 2rem;
    width: inherit;
    display: block;
    font-size: 1.5rem;
    text-decoration: none;
    color:var(--bg-main);
    transition: all 0.3 ease;
}

.menu a:hover {
    font-weight: bold;
    color:var(--accent-hover);
    background-color: var(--main-modal-color);
}

/* Botones y Efectos Hover */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-hover));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* Hero */
.hero {
  background: linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.70)), 
              url('img/audiRs6.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 6rem 1.5rem 7rem;
  text-align: center;
}

.hero-content {
  max-width: 750px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 2.85rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
}

/* Secciones comunes */
.section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.1rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Grid de Pasos */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.step-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -3px rgba(15, 23, 42, 0.1);
}

.step-card a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.step-card a:hover {
  color: var(--accent-hover);
}

.step-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Tarifas */
.pricing-bg {
  background: #f1f5f9;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 16px 16px 0 0;
}

.price {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 1rem 0;
}

.price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.features-list {
  list-style: none;
  text-align: left;
  margin: 2rem 0;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.features-list li {
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.features-list li::before {
  content: "✓";
  color: var(--accent-blue);
  font-weight: bold;
  margin-right: 0.75rem;
}

/* Formulario */
.form-container {
  max-width: 580px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #e2f1fa 100%);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 20px 40px -15px rgba(2, 132, 199, 0.15), 
              0 0 0 1px #c7e2f5;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.divider-text {
  text-align: center;
  position: relative;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.divider-text::before,
.divider-text::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background-color: var(--border);
}

.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

/* Footer */
footer {
  background: #0f172a;
  border-top: 1px solid var(--border);
  color: #94a3b8;
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.85rem;
}

/*------------------------- CSS de la página de entregas -----------------*/

/* Grid para las tarjetas de coches */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Card individual */
.car-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden; /* Corta la imagen con las esquinas redondeadas */
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px -4px rgba(15, 23, 42, 0.12);
}

/* Contenedor de la foto con badge encima */
.car-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
}

.car-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajusta la foto sin deformarla */
  object-position:center 70%;
  display: block;
}

/* Etiqueta sobre la foto */
.car-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Información del vehículo */
.car-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.car-info h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

/* ------------------------CSS DE QUIENES SOMOS ---------------------------------------------*/
.about-intro {
  max-width: 800px;
  margin: 0 auto 3.5rem auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.about-intro strong {
  color: var(--text-main);
}
.title-h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  
  /* Texto en degradado */
  background: linear-gradient(135deg, #0f172a 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Línea decorativa inferior */
.title-h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
  border-radius: 4px;
  margin: 0.6rem auto 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.team-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px -4px rgba(15, 23, 42, 0.1);
}

.team-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 16px 16px 0 0;
}

.team-header {
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1rem auto;
  overflow: hidden;
  background: #f1f5f9;
  border: 3px solid #e0f2fe;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role-badge {
  display: inline-block;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-blue);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.team-header h3 {
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.role-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.team-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.team-skills {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-skills li {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}

/* Enlaces de perfiles */
.team-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.team-btn-link, .team-btn-insta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.team-btn-link {
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.team-btn-link:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.team-btn-insta {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
}

.team-btn-insta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Bloque inferior de Valores */
.values-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
}

.values-box h3 {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.value-item strong {
  display: block;
  font-size: 1rem;
  color: var(--accent-blue);
  margin-bottom: 0.4rem;
}

.value-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .nav-links {
    display: none;
  }
}