/* =========================================================
   Mi Taxi Eléctrico — estilos propios (sin WordPress)
   ========================================================= */

:root {
  --green: #7fc72d;
  --green-dark: #5cbe2d;
  --text: #444444;
  --dark: #000000;
  --bg-tint: #f1f1f1;
  --radius: 10px;
  --shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  --font: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  background: #ffffff;
}

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

a {
  text-decoration: none;
  color: var(--green);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--green-dark);
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--dark);
}

.text-green { color: var(--green-dark); }
.text-dark { color: var(--dark); }
.text-center { text-align: center; }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 40px;
  text-align: center;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #ffaa00;
  color: #fff;
  box-shadow: 0 5px 30px rgba(255, 170, 0, 0.2);
}

.btn-primary:hover {
  background-color: var(--green-dark);
  color: #fff;
  box-shadow: 0 5px 30px rgba(92, 190, 45, 0.2);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--green);
  color: var(--green-dark);
}

.btn-outline:hover {
  background-color: var(--green);
  color: #fff;
}

.btn-small {
  font-size: 12px;
  padding: 10px 22px;
}

.btn-arrow::after {
  content: " →";
}

.btn-link {
  display: block;
  font-weight: 600;
  color: var(--text);
  padding: 6px 0;
}

.btn-link:hover {
  color: var(--green-dark);
}

.link-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------------- HEADER ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 5px 27px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

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

.logo-mobile { display: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--green);
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}

.main-nav a {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #999999;
  position: relative;
  padding: 6px 0;
}

.main-nav a:hover,
.main-nav a.current {
  color: var(--dark);
}

.nav-close {
  display: none;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
}

/* ---------------- HERO ---------------- */
.hero {
  padding: 50px 24px 30px;
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 56px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-text .lead {
  margin-bottom: 32px;
  text-align: justify;
}

.hero-image img {
  border-radius: var(--radius);
}

/* ---------------- SECTIONS ---------------- */
.section {
  padding: 70px 24px;
}

.section-tint {
  background-color: var(--bg-tint);
  background-image: url('nl-content/uploads/2020/08/bg6.png');
  background-repeat: no-repeat;
}

.section-alt {
  background-color: #fafafa;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

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

.col-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.title-lg {
  font-size: 42px;
  margin-bottom: 24px;
}

.title-center {
  font-size: 42px;
  text-align: center;
  margin: 24px auto 16px;
  max-width: 700px;
}

.icon-badge {
  text-align: center;
  font-size: 36px;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.full-image {
  margin-top: 30px;
}

.full-image img {
  border-radius: var(--radius);
}

/* ---------------- CARDS (REQUISITOS) ---------------- */
.col-card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.col-card h3 {
  margin-bottom: 14px;
}

.col-card p {
  margin-bottom: 22px;
}

/* ---------------- CONTACT ---------------- */
.contact-box {
  background-color: #2b2b2b;
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
  max-width: 700px;
  margin: 30px auto 0;
}

.contact-box h4 {
  color: #fff;
  margin-bottom: 16px;
}

.contact-box ul {
  list-style: none;
}

.contact-box li {
  margin-bottom: 8px;
}

.contact-box a {
  color: #fff;
  text-decoration: underline;
}

/* ---------------- MODALS ---------------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius);
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}

.modal-box h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}

.modal-close:hover {
  color: var(--green-dark);
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
}

.modal-table td {
  padding: 8px 10px;
  vertical-align: top;
  border-bottom: 1px solid #eee;
}

.modal-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
  width: 90px;
}

.modal-table-single td {
  width: auto;
}

.modal-image {
  margin-top: 20px;
  border-radius: var(--radius);
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  background-color: var(--bg-tint);
}

.footer-logos {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 24px;
  flex-wrap: wrap;
}

.footer-logos img {
  max-width: 220px;
  margin: 0 auto;
}

.footer-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.4);
}

.footer-bottom {
  text-align: center;
  padding: 20px 24px 50px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.4);
}

/* ---------------- BACK TO TOP ---------------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 80;
}

.back-to-top.is-visible {
  display: flex;
}

/* ---------------- RESPONSIVE ---------------- */
@media screen and (max-width: 1024px) {
  .hero-text h1 { font-size: 44px; }
  .title-center, .title-lg { font-size: 34px; }
}

@media screen and (max-width: 768px) {
  .logo-desktop { display: none; }
  .logo-mobile { display: block; height: 36px; }

  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 110;
    padding: 24px;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  }

  .main-nav.is-open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 18px;
    margin-top: 50px;
  }

  .nav-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
  }

  .nav-overlay.is-open {
    display: block;
  }

  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-grid .hero-image { order: -1; }
  .two-col.reverse-on-mobile .col-image { order: 0; }

  .hero-actions {
    justify-content: center;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  body { font-size: 16px; line-height: 1.6; }
  .hero-text h1 { font-size: 34px; }
  .title-center, .title-lg { font-size: 28px; }
  .section { padding: 50px 16px; }
  .modal-box { padding: 26px; }
}
