/* --- RESET & VARIABLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #0066ff;
  --dark-blue: #003a8c;
  --racing-red: #e63946;
  --carbon-black: #0d0d0d;
  --industrial-gray: #1a1a1a;
  --steel-gray: #2d2d2d;
  --text-white: #f5f5f5;
  --text-gray: #b0b0b0;
  --whatsapp-green: #25d366;
  --accent-gradient: linear-gradient(135deg, #0066ff 0%, #003a8c 100%);
  --card-gradient: linear-gradient(145deg, #1e1e1e, #111111);
}

body {
  font-family: "Inter", sans-serif;
  background: var(--carbon-black);
  color: var(--text-white);
  line-height: 1.6;
}

/* Patrón de fondo Industrial */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    circle at 2px 2px,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 0
  );
  background-size: 24px 24px;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- HEADER --- */
.header {
  background: rgba(13, 13, 13, 0.95);
  border-bottom: 2px solid var(--steel-gray);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Language Switcher */
.language-switch {
  display: flex;
  background: var(--steel-gray);
  padding: 3px;
  border-radius: 5px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-gray);
  padding: 5px 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 3px;
}

.lang-btn.active {
  background: var(--primary-blue);
  color: white;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.badge-certified {
  display: inline-block;
  background: var(--racing-red);
  padding: 5px 15px;
  font-weight: 900;
  font-size: 0.8rem;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  margin-bottom: 20px;
}

.hero-text h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

/* Offer Card */
.offer-card {
  background: #fff;
  color: #111;
  border-radius: 4px;
  max-width: 400px;
  margin-top: 30px;
  position: relative;
  box-shadow: 10px 10px 0px var(--primary-blue);
}

.offer-badge {
  background: var(--primary-blue);
  color: white;
  padding: 5px 15px;
  font-weight: bold;
  font-size: 0.8rem;
}

.offer-content {
  padding: 20px;
}
.offer-price {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--dark-blue);
  line-height: 1;
}

.offer-price .tax {
  font-size: 1rem;
  color: #666;
}

/* --- OWNER SECTION --- */
.owner-section {
  padding: 80px 0;
  position: relative;
  background:
    linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
    url("images/profile-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-top: 1px solid var(--steel-gray);
  border-bottom: 1px solid var(--steel-gray);
}

.owner-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  background: rgba(30, 30, 30, 0.95);
  border: 3px solid var(--steel-gray);
  border-radius: 10px;
  overflow: hidden;
  align-items: center;
  max-width: 950px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.owner-image {
  position: relative;
  height: 550px;
}

.owner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-tag {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--primary-blue);
  padding: 15px;
  text-align: center;
  transform: rotate(-5deg);
  border: 2px solid white;
}

.experience-tag .years {
  display: block;
  font-size: 2rem;
  font-weight: 900;
}

.owner-info {
  padding: 50px;
}

.owner-info h2 {
  color: var(--primary-blue);
  text-transform: uppercase;
  font-size: 1rem;
}

.owner-name {
  font-size: 2rem;
  margin-bottom: 20px;
  white-space: nowrap;
}

.bio-text {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-gray);
  border-left: 3px solid var(--primary-blue);
  padding-left: 20px;
}

.signature {
  margin-top: 30px;
  font-family: "Orbitron", sans-serif;
  color: var(--primary-blue);
  font-weight: bold;
}

/* --- SERVICES GRID --- */
.services {
  padding: 100px 0;
  position: relative;
  background:
    linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)),
    url("images/services-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-top: 1px solid #222;
}
.section-title {
  text-align: center;
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 60px;
  text-transform: uppercase;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid #444;
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s ease;
  backdrop-filter: blur(5px);
}

.service-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-5px);
  background: rgba(40, 40, 40, 0.95);
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin: 15px 0 25px 0;
  line-height: 1.4;
  flex-grow: 1;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.service-brands {
  margin: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1px;
}

.service-brands img {
  height: 90px;
  opacity: 1;
  object-fit: contain;
}

.services-wrapper {
  position: relative;
  min-height: 400px;
}

/* El Overlay de cristal esmerilado - ACTUALIZADO */
.schedule-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  z-index: 50;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.5s ease;
  padding: 40px 20px;
}

.schedule-overlay.hidden {
  display: none;
  opacity: 0;
}

.overlay-content {
  text-align: center;
  max-width: 500px;
  color: white;
  width: 100%;
}

.overlay-header {
  margin-bottom: 30px;
}

.overlay-header i {
  font-size: 4rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.overlay-header h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  margin-bottom: 10px;
}

.working-hours {
  background: rgba(0, 102, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid var(--primary-blue);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.working-hours span:first-child {
  font-weight: bold;
  color: var(--primary-blue);
}

.small-note {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 20px;
}

#btn-show-anyway {
  background: transparent;
  border: 1px solid white;
  font-size: 0.8rem;
  margin-top: 10px;
}

/* --- BUTTONS --- */
.btn {
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  border-radius: 4px;
  transition: 0.3s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
}

.btn-large {
  padding: 20px 40px;
  font-size: 1.2rem;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: white;
}

.btn-service {
  width: 100%;
  background: transparent;
  border: 2px solid var(--whatsapp-green);
  color: var(--whatsapp-green);
  padding: 10px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.btn-service:hover {
  background: var(--whatsapp-green);
  color: white;
}

/* --- STEPS --- */
.how-it-works {
  background: #080808;
  padding: 100px 0;
}
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.step-card {
  background: var(--industrial-gray);
  padding: 40px;
  border-radius: 5px;
  position: relative;
}

.step-num {
  font-family: "Orbitron", sans-serif;
  font-size: 3rem;
  color: rgba(0, 102, 255, 0.2);
  position: absolute;
  top: 10px;
  right: 20px;
}

/* --- FOOTER --- */
.footer {
  background: #000;
  padding: 80px 0 40px;
  border-top: 1px solid #222;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.phone-link {
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: bold;
}

.footer-bottom {
  text-align: center;
  color: var(--text-gray);
  font-size: 0.8rem;
  padding-top: 40px;
  border-top: 1px solid #111;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  /* Header adjustments - Todo en una línea */
  .header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .logo-img {
    height: 45px;
  }

  .header-right {
    gap: 8px;
  }

  .language-switch {
    padding: 2px;
  }

  .lang-btn {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .btn-primary {
    padding: 8px 12px;
    font-size: 0.7rem;
  }

  /* Hero section */
  .hero-text h2 {
    font-size: 1.8rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
  }

  .hero-action {
    width: 100%;
    margin-top: 30px;
  }

  .btn-large.btn-whatsapp {
    padding: 15px 20px;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }

  .btn-large.btn-whatsapp span {
    font-size: 1rem;
    white-space: nowrap;
  }

  /* Owner section */
  .owner-card {
    grid-template-columns: 1fr;
  }

  .owner-image {
    min-height: 300px;
    height: auto;
  }

  .owner-name {
    font-size: 1.5rem;
    white-space: normal;
  }

  .owner-info {
    padding: 30px;
  }

  .bio-text {
    font-size: 1rem;
  }

  /* Services section */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Schedule overlay */
  .schedule-overlay {
    padding: 30px 15px;
    align-items: flex-start;
  }

  .overlay-header i {
    font-size: 3rem;
  }

  .overlay-header h3 {
    font-size: 1.5rem;
  }

  .working-hours {
    padding: 15px;
  }

  /* Steps */
  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .steps-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step-card {
    padding: 30px;
  }

  /* Footer */
  .footer-grid {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .phone-link {
    font-size: 1.2rem;
  }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
  .header-content {
    gap: 5px;
  }

  .logo-img {
    height: 40px;
  }

  .btn-primary {
    padding: 6px 10px;
    font-size: 0.65rem;
  }

  .lang-btn {
    padding: 3px 6px;
    font-size: 0.65rem;
  }

  .btn-large.btn-whatsapp {
    padding: 12px 16px;
  }

  .btn-large.btn-whatsapp span {
    font-size: 0.9rem;
  }

  .offer-price {
    font-size: 2.5rem;
  }

  .owner-name {
    font-size: 1.3rem;
  }
}
