:root {
  --color-principal: #0f172a;
  --color-secundario: #1e293b;
  --color-texto: #e0e7ff;
  --color-acento: #38bdf8;
  --color-boton-texto: #0f172a;
  --color-boton-fondo: #38bdf8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--color-principal);
  color: var(--color-texto);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* NAVBAR */

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-secundario);
  padding: 1rem 3rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.5);
  transition: background-color 0.3s ease;
}

.navbar.scrolled {
  background-color: #0a1128;
  box-shadow: 0 4px 15px rgb(0 0 0 / 0.7);
}

.navbar .logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-acento);
  letter-spacing: 1.5px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: var(--color-acento);
  border-radius: 2px;
}

/* Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links li a {
  font-weight: 600;
  font-size: 1rem;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a.active,
.nav-links li a:hover {
  color: var(--color-acento);
}

.nav-links li a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-acento);
  transition: width 0.3s;
  position: absolute;
  bottom: -6px;
  left: 0;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-secundario);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }
}



/* HERO CON IMAGEN Y OVERLAY */
.hero {
  position: relative;
  text-align: center;
  padding: 10rem 1.5rem 8rem;
  background-image: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1470&q=80');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--color-texto);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 600px;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 1.2px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

/* BOTONES */
.btn {
  display: inline-block;
  background-color: var(--color-primario);
  color: var(--color-primario);
  padding: 0.9rem 2rem;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgb(56 189 248 / 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-right: 1rem;
}

.btn:hover {
  background-color: var(--color-primario);
  box-shadow: 0 8px 20px rgb(14 165 233 / 0.7);
}

.btn-secondary {
  background-color: var(--color-primario);
  border: 2px solid var(--color-boton-fondo);
  color: var(--color-primario);
  padding: 0.9rem 2rem;
  font-weight: 700;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--color-boton-fondo);
  color: var(--color-boton-texto);
  box-shadow: 0 5px 15px rgb(56 189 248 / 0.4);
}

/* SECCIONES */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.section h2 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  color: var(--color-texto);
}

/* TARJETAS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.8rem;
  margin-top: 3rem;
}

.card {
  background-color: var(--color-secundario);
  border-radius: 15px;
  padding: 2.5rem 2rem;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  color: white;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.6);
}

.card i {
  color: floralwhite;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.card:hover i {
  color: #0ea5e9;
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #cbd5e1;
}

/* FOOTER */
.footer {
  background-color: var(--color-principal);
  color: #94a3b8;
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1);
}

/* CONTACTO */
.section.contacto p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.section.contacto a.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-acento);
  color: var(--color-acento);
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.section.contacto a.btn-secondary:hover {
  background-color: var(--color-acento);
  color: var(--color-boton-texto);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .hero {
    padding: 6rem 1.5rem 6rem;
    min-height: 450px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .btn {
    margin-bottom: 1rem;
    margin-right: 0;
  }

  .section h2 {
    font-size: 2rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 2rem 1.5rem;
  }
}

/* SERVICIOS */

.services-section {
  padding: 5rem 2rem;
  background-color: var(--color-fondo);
  color: var(--color-texto);
  text-align: center;
}

.services-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-primario);
}

.services-header p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: var(--color-texto);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.service-card {
  background-color: var(--color-secundario);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--color-primario);
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-description {
  font-size: 1rem;
  color: var(--color-texto);
  line-height: 1.5;
  flex-grow: 1;
}



/* "Por qué elegirnos" */


.why-section {
  background: #0f172a;
  padding: 80px 20px;
  text-align: center;
}

.why-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f9f9f9;
  margin-bottom: 0.5rem;
}

.why-subtitle {
  font-size: 1.1rem;
  color: #f9f9f9;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.why-box {
  background-color: var(--color-secundario);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.why-box:hover {
  transform: translateY(-8px);
}

.why-box i {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.why-box h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.why-box p {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.5;
}


/* Ventajas */
.advantages {
  margin-top: 4rem;
}

.advantages h2 {
  font-size: 2rem;
  color: var(--color-primario);
  margin-bottom: 2rem;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.adv-card {
  background-color: var(--color-secundario);
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.adv-card i {
  font-size: 2rem;
  color: var(--color-primario);
  margin-bottom: 0.5rem;
}

.adv-card p {
  margin: 0;
  font-weight: 500;
}

/* Marcas */
.partners {
  margin-top: 5rem;
  overflow: hidden;
  position: relative;
}

.brands-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  animation: scroll-marcas 30s linear infinite;
  width: fit-content;
}

.brand-slide {
  flex: 0 0 auto;
  width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-slide img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  opacity: 0.7;
  transition: all 0.3s ease;
  filter: grayscale(100%);
}

.brand-slide img:hover {
  opacity: 1;
  transform: scale(1.05);
  filter: grayscale(0%);
}

@keyframes scroll-marcas {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}




/* NOSOTROS */

.about-hero {
  background: url("https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1470&q=80") center/cover no-repeat;
  padding: 6rem 2rem;
  text-align: center;
}

.about-hero h1 {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.about-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn {
  background-color: var(--color-principal);
  color: white;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.about-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 2rem;
  justify-content: center;
  background-color: #1e293b;
}

.info-block {
  flex: 1 1 300px;
  max-width: 500px;
}

.info-block h2 {
  color: white;
  margin-bottom: 0.5rem;
}

.about-values {
  padding: 4rem 2rem;
  background-color: #0f172a;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.values-grid div {
  background: #1e293b;
  padding: 1.5rem;
  border-radius: 10px;
}

.values-grid i {
  font-size: 2rem;
  color: white;
  margin-bottom: 0.5rem;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem;
}

.team-member {
  background: #1e293b;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  width: 250px;
}

.team-member img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.about-certs {
  background-color: #0f172a;
  padding: 4rem 2rem;
  text-align: center;
  color: #e2e8f0;
}

.about-certs h2 {
  font-size: 2.5rem;
  color: #38bdf8;
  margin-bottom: 2rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.cert-card {
  background-color: #1e293b;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
}

.cert-card i {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

.cert-card h3 {
  margin-bottom: 0.5rem;
  color: #e2e8f0;
}

.cert-card p {
  font-size: 0.95rem;
  color: #cbd5e1;
}


/* CONTACTO */



.contact-section {
  background-color: #0f172a;
  padding: 5rem 2rem;
  color: #cbd5e1;
}

.contact-section h1 {
  color: #ffffff;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.contact-description {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem auto;
  color: #94a3b8;
}

.contact-methods {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  background-color: #1e293b;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #f1f5f9;
  transition: transform 0.3s ease;
}

.contact-method:hover {
  transform: scale(1.05);
}

.contact-method i {
  font-size: 1.5rem;
  color: #ffffff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.contact-form input,
.contact-form textarea {
  background-color: #1e293b;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 1rem;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 2px #38bdf8;
}

.btn-primary {
  background-color: #38bdf8;
  border: none;
  padding: 1rem 2rem;
  color: #ffffff;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #0ea5e9;
}

.map-container {
  text-align: center;
  margin-top: 2rem;
}

.map-container h2 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.map-container p {
  color: #94a3b8;
  margin-bottom: 1rem;
}

.map-container iframe {
  width: 100%;
  max-width: 800px;
  height: 350px;
  border: none;
  border-radius: 12px;
}