/* 1. Variables */
:root {
      --color-primary: #7065F0;
      --color-secondary: #100A55;
      --color-white: #fff;
      --color-black: #000;
      --color-border: #EDEFF3;
      --color-background: #F5F6F7;
}

/* 2. Etiquetas generales */
html,
body {
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      overflow-x: hidden;
}

body {
      background: var(--color-background);
}

body,
button,
a,
nav,
div,
h1,
h2,
h3,
h4,
h5,
h6 {
      font-family: 'Poppins', Arial, sans-serif;
}

/* 3. Navbar */
nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
      background: #f8f8f8;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
      position: relative;
      z-index: 10;
}

.nav-brand {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 100%;
      font-size: 54px;
}

.nav-brand a {
      font-size: 24px;
}

nav>div:first-child {
      font-weight: bold;
      font-size: 1.5rem;
}

nav>div:last-child {
      display: flex;
      gap: 1rem;
      align-items: center;
}

a,
nav>div:last-child a,
nav>div:last-child button {
      font-weight: bold;
}

a {
      text-decoration: none;
      color: #333;
      font-size: 1rem;
}

a button {
      padding: 0.5rem 1rem;
      background: var(--color-secondary);
      color: #fff;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 1rem;
}

/* 4. Hero Section */
.hero {
      position: relative;
      width: 100vw;
      min-height: 100vh;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: none;
      overflow: hidden;
}

.hero-img-container {
      position: inherit;
      width: 100vw;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
}

.hero-img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      object-position: right top;
      object-fit: cover;
      z-index: 1;
}

.hero-content {
      position: relative;
      z-index: 2;
      background: none;
      padding: 2rem 3rem;
      border-radius: 1rem;
      box-shadow: none;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      max-width: 600px;
      margin: auto;
}

.hero-content h1 {
      color: var(--color-primary);
      font-size: 2.5rem;
      margin-bottom: 1rem;
      font-weight: 600;
}

.hero-content h3 {
      color: var(--color-secondary);
      font-size: 1.25rem;
      font-weight: 400;
}

/* 5. Features Section */
.features {
      display: flex;
      justify-content: center;
      align-items: stretch;
      gap: 2rem;
      padding: 4rem 2rem;
      background: var(--color-border);
}

.card {
      background: var(--color-white);
      border: 1px solid var(--color-border);
      border-radius: 1rem;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
      padding: 2rem 1.5rem;
      width: 360px;
      height: fit-content;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 1rem;
}

.card-logo {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 1rem;
}

.card h3 {
      color: var(--color-primary);
      font-size: 1.25rem;
      font-weight: 600;
      margin: 0 0 0.5rem 0;
}

.card p {
      color: var(--color-black);
      font-size: 1rem;
      margin: 0;
}

/* 6. Info Gallery Section */
.info-gallery {
      padding: 4rem 2rem;
      background: var(--color-background);
}

.info-gallery-container {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      gap: 3rem;
      max-width: 1200px;
      margin: 0 auto;
}

.info-text {
      flex: 1 1 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      max-width: 400px;
}

.info-text h2 {
      color: var(--color-primary);
      font-size: 2rem;
      font-weight: 600;
      margin-bottom: 1rem;
}

.info-text p {
      color: var(--color-black);
      font-size: 1.1rem;
      margin: 0;
}

/* 7. Gallery Wrapper & Vertical Carousel */
.gallery-wrapper {
      flex: 1 1 0;
      display: flex;
      justify-content: center;
      align-items: stretch;
      gap: 2rem;
      padding: 1rem 0;
      min-height: 400px;
      background: none;
}

.gallery {
      display: flex;
      gap: 1rem;
}

.gallery img {
      width: 120px;
      height: 120px;
      object-fit: cover;
      border-radius: 0.75rem;
      border: 2px solid var(--color-border);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vertical-carousel {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex: 1 1 0;
      min-width: 0;
      min-height: 0;
      width: 130px;
      /* Puedes ajustar esto si prefieres usar max-width: 300px */
      height: 260px;
      /* O usar height: 100% si quieres que se adapte */
      max-width: 300px;
      max-height: 100%;
      overflow: hidden;
      position: relative;
      border-radius: 1rem;
      border: 2px solid var(--color-border);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
      background: var(--color-white);
}

.carousel-track {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      transition: transform 0.5s;
}

.vertical-carousel img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      border-radius: 0.75rem;
      border: none;
      box-shadow: none;
      display: block;
}

/* 8. About Section */
.about-main {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: flex-start;
      gap: 3rem;
      max-width: 1200px;
      margin: 4rem auto 4rem auto;
      padding: 0 2rem;
}

.about-left {
      flex: 0 0 60%;
      max-width: 60%;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      gap: 1.5rem;
}

.about-left h1 {
      color: var(--color-primary);
      font-size: 2.2rem;
      font-weight: 700;
      margin-bottom: 1rem;
}

.about-left p {
      color: var(--color-black);
      font-size: 1.1rem;
      margin: 0;
}

.about-right {
      flex: 1 1 0;
      max-width: 40%;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
}

.about-row {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      gap: 1rem;
      background: var(--color-white);
      border: 1px solid var(--color-border);
      border-radius: 0.75rem;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
      padding: 1.25rem 1rem;
}

.about-logo {
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 48px;
      min-height: 48px;
      margin-right: 0.5rem;
}

.about-info {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      gap: 0.5rem;
}

.about-info h3 {
      color: var(--color-primary);
      font-size: 1.15rem;
      font-weight: 600;
      margin: 0 0 0.25rem 0;
}

.about-info p {
      color: var(--color-black);
      font-size: 1rem;
      margin: 0;
}

/* 9. Contact Section */
.contact-main {
      max-width: 1200px;
      margin: 4rem auto 4rem auto;
      padding: 0 2rem;
}

.contact-main h1 {
      color: var(--color-primary);
      font-size: 2.2rem;
      font-weight: 700;
      margin-bottom: 2rem;
      text-align: center;
}

.contact-container {
      display: flex;
      flex-direction: row;
      gap: 3rem;
      justify-content: center;
      align-items: flex-start;
}

.contact-info {
      flex: 0 0 40%;
      max-width: 40%;
      display: flex;
      flex-direction: column;
      gap: 1.2rem;
      background: var(--color-white);
      border: 1px solid var(--color-border);
      border-radius: 0.75rem;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
      padding: 2rem 1.5rem;
}

.contact-info h2 {
      color: var(--color-primary);
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 1rem;
}

.contact-row {
      color: var(--color-black);
      font-size: 1.05rem;
      margin-bottom: 0.5rem;
}

.contact-form {
      flex: 1 1 0;
      max-width: 60%;
      display: flex;
      flex-direction: column;
      gap: 1.2rem;
      background: var(--color-white);
      border: 1px solid var(--color-border);
      border-radius: 0.75rem;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
      padding: 2rem 1.5rem;
}

.contact-form h2 {
      color: var(--color-primary);
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 1rem;
}

.contact-form form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
}

.contact-form input,
.contact-form textarea {
      width: 100%;
      padding: 0.75rem 1rem;
      border: 1px solid var(--color-border);
      border-radius: 0.5rem;
      font-size: 1rem;
      font-family: 'Poppins', Arial, sans-serif;
      margin-bottom: 0.5rem;
      resize: none;
}

.contact-form textarea {
      min-height: 100px;
      max-height: 200px;
}

.contact-btn {
      padding: 0.75rem 1.5rem;
      background: var(--color-secondary);
      color: #fff;
      border: none;
      border-radius: 0.5rem;
      font-size: 1.05rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s;
}

.contact-btn:hover {
      background: #2a2170;
}

/* 10. Footer */
.footer {
      background: var(--color-black);
      color: var(--color-white);
      padding: 2.5rem 2rem 2rem 2rem;
}

.footer-container {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: flex-start;
      max-width: 1200px;
      margin: 0 auto;
      gap: 3rem;
}

.footer-left {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      flex: 1 1 0;
}

.footer-brand-row {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 0.5rem;
}

.footer-brand {
      font-size: 1.5rem;
      font-weight: 700;
      letter-spacing: 1px;
}

.footer-desc-row {
      display: flex;
      flex-direction: row;
      align-items: center;
}

.footer-desc-row p {
      color: var(--color-white);
      font-size: 1rem;
      margin: 0;
}

.footer-right {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      align-items: flex-end;
      flex: 1 1 0;
}

.footer-contact-row {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 0.5rem;
}

.footer-contact-title {
      font-size: 1.2rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
}

.footer-delimiter-wrapper {
      width: 90%;
      margin: 2rem auto 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
}

.footer-delimiter-info {
      width: 100%;
      display: flex;
      justify-content: flex-end;
      margin-bottom: 0.5rem;
}

.footer-copyright {
      color: var(--color-border);
      font-size: 0.95rem;
      opacity: 1;
}

.footer-delimiter {
      width: 100%;
      border: none;
      border-top: 1.5px solid var(--color-border);
      margin: 0;
}

.footer-build {
      width: 100%;
      text-align: center;
      margin-top: 0.5rem;
}

.footer-build span {
      color: var(--color-border);
      font-size: 1rem;
      opacity: 1;
}

.hamburger {
      display: none;
}

/* 11. Responsividad para móviles (max-width: 809px) */
/* 11. Responsividad para móviles (max-width: 809px) */
@media (max-width: 809px) {

      /* Navbar general en móvil */
      nav {
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
      }

      /* Marca de navegación */
      .nav-brand {
            font-size: 2rem;
            align-items: center;
            display: flex;
            height: 40px;
            width: 100%;
            justify-content: space-between;
      }

      /* Botón hamburguesa */
      .hamburger {
            display: flex !important;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            margin-left: auto;
            margin-right: 0;
            width: 40px;
            height: 40px;
            background: none;
            border: none;
            cursor: pointer;
            z-index: 100;
      }

      .hamburger span {
            display: block;
            width: 28px;
            height: 4px;
            margin: 4px 0;
            background: var(--color-primary);
            border-radius: 2px;
            transition: 0.3s;
      }

      /* Contenedor de enlaces */
      .nav-links-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
      }

      /* Menú cerrado por defecto */
      .nav-links {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            width: 100%;
            min-width: 100%;
            position: relative;
            /* Cambiado de absolute a relative */
            top: auto;
            left: auto;
            transform: scaleY(0);
            /* Efecto de cierre */
            transform-origin: top;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            padding: 1rem 0;
            z-index: 99;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease, transform 0.3s ease;
      }

      /* Menú abierto */
      nav.open .nav-links {
            opacity: 1;
            pointer-events: auto;
            transform: scaleY(1);
      }
}

/* 11. Responsividad para móviles (max-width: 809px) */
@media (max-width: 809px) {

      /* Navbar general en móvil */
      nav {
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
      }

      /* Marca de navegación */
      .nav-brand {
            font-size: 2rem;
            align-items: center;
            display: flex;
            height: 40px;
            width: 100%;
            justify-content: space-between;
      }

      /* Botón hamburguesa */
      .hamburger {
            display: flex !important;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            margin-left: auto;
            margin-right: 0;
            width: 40px;
            height: 40px;
            background: none;
            border: none;
            cursor: pointer;
            z-index: 100;
      }

      .hamburger span {
            display: block;
            width: 28px;
            height: 4px;
            margin: 4px 0;
            background: var(--color-primary);
            border-radius: 2px;
            transition: 0.3s;
      }

      /* Contenedor para animar apertura */
      .nav-links-wrapper {
            overflow: hidden;
            /* oculta contenido mientras se despliega */
            max-height: 0;
            /* cerrado */
            transition: max-height 0.3s ease;
            /* animación de apertura/cierre */
            width: 100%;
      }

      /* Menú en sí */
      .nav-links {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            width: 100%;
            padding: 1rem 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
      }

      /* Estado abierto */
      nav.open .nav-links-wrapper {
            max-height: 500px;
            /* alto suficiente para mostrar todos los enlaces */
      }

      nav.open .nav-links {
            opacity: 1;
            pointer-events: auto;
      }

      /* Section Features */
      .features {
            flex-direction: column;
            align-items: center;
            padding: 2rem 1rem;
      }

      /* Section Info Gallery */
      .info-gallery-container {
            flex-direction: column;
            align-items: center;
      }

      /* About us */
      .about-main {
            flex-direction: column;
            align-items: center;
      }

      /* Contact Section */
      .contact-container {
            flex-direction: column;
            align-items: center;
            padding: 2rem 1rem;
      }
}