/* ----------------------------- */
/*        ESTILOS GENERALES      */
/* ----------------------------- */

html {
  scroll-behavior: smooth;
}

:root {
  --primary: #1e90ff;
  --primary-dark: #0f6fcd;
  --secondary: #111;
  --light: #f5f5f5;
  --dark: #222;
  --text: #444;
  --max-width: 1100px;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.6;
}
/*
h1, h2, h3, h4 {
  color: var(--dark);
  margin-bottom: 10px;
}
*/

a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: auto;
  padding: 40px 0;
}

/* ----------------------------- */
/*          HEADER HERO          */
/* ----------------------------- */

.hero-header {
  background: var(--dark);
  padding: 20px;
  text-align: center;
}

.hero-header h1 {
  color: white;
  font-size: 32px;
  letter-spacing: 1px;
}

/* ----------------------------- */
/*        HERO SLIDER            */
/* ----------------------------- */

.hero-slider {
  position: relative;
  height: 70vh;
  max-height: 700px;
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease-in-out;
}

.hero-slider .slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content h2 {
  font-size: 42px;
  color: #fff;
}

.hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: bold;
  transition: .2s;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--dark);
  margin-left: 10px;
}

.btn-secondary:hover {
  background: #e3e3e3;
}

.btn-large {
  font-size: 20px;
  padding: 15px 35px;
}

/* ----------------------------- */
/*          INTRO SECTION        */
/* ----------------------------- */
.intro-section {
  text-align: center;
}

.intro-section p {
  max-width: 700px;
  margin: auto;
  margin-bottom: 25px;
}

/* ----------------------------- */
/*          BENEFICIOS           */
/* ----------------------------- */

.benefits {
  text-align: center;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.benefit-item {
  background: var(--light);
  padding: 25px;
  border-radius: 10px;
  transition: .3s;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-item img {
  width: 60px;
  margin-bottom: 15px;
}

/* ----------------------------- */
/*             GALERÍA           */
/* ----------------------------- */

.gallery h2 {
  text-align: center;
}

.gallery-grid {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

/* ----------------------------- */
/*          TESTIMONIOS          */
/* ----------------------------- */

.testimonials {
  text-align: center;
}

.testimonial-list {
  margin-top: 25px;
  display: grid;
  gap: 20px;
}

.testimonial {
  background: #fafafa;
  padding: 20px;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
}

/* ----------------------------- */
/*            CONFIANZA          */
/* ----------------------------- */

.trust {
  text-align: center;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.trust-item {
  background: #f7f7f7;
  padding: 20px;
  border-radius: 10px;
}

.trust-item img {
  width: 50px;
  margin-bottom: 10px;
}

/* ----------------------------- */
/*               FAQ             */
/* ----------------------------- */

.faq h2 {
  text-align: center;
}

details {
  background: var(--light);
  margin: 10px 0;
  padding: 15px 20px;
  border-radius: 6px;
  cursor: pointer;
}

summary {
  font-weight: bold;
  font-size: 17px;
}

/* ----------------------------- */
/*              CTA              */
/* ----------------------------- */

.cta {
  text-align: center;
  padding: 60px 20px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  margin-top: 40px;
}

.cta h2 {
  color: white;
  margin-bottom: 20px;
}

/* ----------------------------- */
/*              FOOTER           */
/* ----------------------------- */

footer {
  border-top: 1px solid #333;
  color: #888;
}

/* ----------------------------- */
/*        RESPONSIVO MOBILE      */
/* ----------------------------- */

@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 28px;
  }

  .hero-slider {
    height: 55vh;
  }

  .btn {
    margin-top: 10px;
  }
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px; /* espacio entre logo y texto */
}

.hero-logo img {
  height: 70px;  /* ajusta según tu logo */
  width: auto;
}
/* Header now supports menu */
.hero-header {
  background: var(--dark);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.hero-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-logo img {
  height: 45px;
}

/* ===== Menú del Header ===== */
/*
.hero-menu {
  display: flex;
  gap: 25px;
}

.hero-menu a {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  transition: 0.2s ease;
  opacity: 0.85;
}

.hero-menu a:hover {
  opacity: 1;
  color: #1e90ff; /* azul de tu marca */
}
*/

/* ===== Menú del Header ===== */
.hero-header {
  background: var(--dark);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.hero-menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 16px;
  opacity: 0.9;
  transition: 0.2s ease;
}

.hero-menu a:hover {
  opacity: 1;
  color: #1e90ff;
}

.hero-menu img {
  width: 20px;
  height: 20px;
}
/* ===== VERSIÓN MÓVIL ===== */
@media (max-width: 768px) {

  /* Oculta el texto en móvil */
  .hero-menu span {
    display: none;
  }

  /* Reduce el espacio */
  .hero-menu {
    gap: 20px;
  }

  /* Iconos más grandes para que se vean mejor */
  .hero-menu img {
    width: 26px;
    height: 26px;
  }
}
/* ========== Ocultar menú hamburguesa en escritorio ========== */
.hamburger {
  display: none;
}

/* ========== Mobile menu ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background: #111;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  transition: right 0.3s ease;
  z-index: 9999;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 18px;
}

.mobile-menu img {
  width: 22px;
  height: 22px;
}

/* Fondo oscuro detrás del menú */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 9998;
}

/* ========== Estilos para móvil ========== */
@media (max-width: 768px) {

  /* Mostrar hamburguesa en móvil */
  .hamburger {
    display: block;
    font-size: 32px;
    cursor: pointer;
    color: white;
  }

  /* Ocultar menú horizontal en móvil */
  .desktop-menu {
    display: none;
  }
}

/* Cuando el menú está abierto */
.mobile-menu.open {
  right: 0;
}

.menu-overlay.show {
  display: block;
}


