/* ======== COLORES MARCA ======== */
:root {
    --azul: #285D8A;
    --gris: #B4B2A7;
    --blanco: #FFFAFF;
    --naranja: #DF957C;
    --negro: #14000A;
}

/* ======== TIPOGRAFÍAS ======== */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    background-color: var(--blanco);
    padding-top: 100px;
}

/* ======== NAVBAR ======== */
.navbar {
    background-color: var(--gris);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1300px;
    margin: auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo img {
    height: 80px;
}

/* MENÚ DESKTOP */
.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-item {
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    color: var(--negro);
    font-size: 19px;
    padding: 8px 12px;
    transition: 0.3s;
}

/* Hover */
.nav-item:hover {
    color: var(--naranja);
}

/* Página activa */
.nav-item.active {
    background-color: var(--blanco);
    color: var(--azul);
    border-radius: 6px;
}

/* ======== MENÚ MÓVIL (HAMBURGUESA) ======== */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--negro);
    transition: 0.3s;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 900px) {

    /* Ocultar menú desktop */
    .nav-menu {
        position: absolute;
        top: 78px;
        right: 0;
        width: 100%;
        background: var(--gris);
        flex-direction: column;
        text-align: center;
        gap: 0;
        display: none;
        padding-bottom: 20px;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-item {
        padding: 15px 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    /* Mostrar botón hamburguesa */
    .nav-toggle {
        display: flex;
    }

    /* Animación menú hamburguesa */
    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* =======================
   FOOTER
   ======================= */

.footer {
    background-color: var(--azul); /* Azul de la marca */
    color: var(--blanco);
    font-family: 'Open Sans', sans-serif; /* Tipografía cuerpo */
    padding: 40px 20px;
}

.footer-container {
    max-width: 1300px;
    margin: auto;
    display: flex;
    gap: 50px;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Columnas del footer */
.footer-col {
    flex: 1;
    min-width: 300px;
}

/* Título */
.footer-col h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Texto */
.footer-col p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px;
}

/* Contacto */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 3px;
}

.contact-item img {
    width: 34px;
    height: 34px;
}

.footer-link {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    color: var(--naranja); /* O azul, como prefieras */
}

/* =========== RESPONSIVE =========== */
@media (max-width: 800px) {
    .footer-container {
        flex-direction: column;
    }

    .contact-item img {
        width: 30px;
        height: 30px;
    }

    .footer-col h3 {
        font-size: 20px;
    }
}

/* ===== COPYRIGHT ===== */

.copyright {
    background-color: #1A2F45; /* azul más oscuro que el footer */
    color: var(--blanco);
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    padding: 12px 20px;
    font-size: 15px;
}

/* ----------- FORMULARIO TECNOCONVERSIÓN ----------- */

.intro-formulario {
  margin-bottom: 1rem; /* separa el texto del formulario */
}

.contacto-tecno {
  display: flex;
  justify-content: center;
  padding: 3rem 3rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.contacto-card {
  background-color: var(--gris);          /* fondo claro azulado */
  border-radius: 18px;
  padding: 2rem;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
}

.campo-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.campo-form label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #193a5b;                     /* azul oscuro corporativo */
}

.campo-form input,
.campo-form textarea {
  border: 1px solid #c5d3e6;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  outline: none;
  background-color: #ffffff;
}

.campo-mensaje textarea {
  border-radius: 16px;                /* más rectangular para el mensaje */
  resize: vertical;
}

.campo-form input::placeholder,
.campo-form textarea::placeholder {
  color: #9aa5b5;
}

.campo-form input:focus,
.campo-form textarea:focus {
  border-color: #0056a6;
  box-shadow: 0 0 0 2px rgba(0, 86, 166, 0.15);
}

.contacto-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.btn-enviar {
  border: none;
  border-radius: 999px;
  padding: 0.7rem 2.3rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background-color: var(--naranja);           /* botón azul Tecnoconversión */
  color: #ffffff;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
}

.btn-enviar:hover {
  background-color: var(--naranja);
  box-shadow: 0 6px 14px rgba(0, 66, 127, 0.3);
  transform: translateY(-1px);
}

.contacto-mail {
  font-size: 0.9rem;
  color: #4a5563;
}

.contacto-mail a {
  color: #a0162a;                      /* rojo (puede cambiarse por uno corporativo) */
  font-weight: 600;
  text-decoration: underline;
}

.contacto-mail a:hover {
  text-decoration: none;
}

/* ----------- RESPONSIVE ----------- */

@media (max-width: 768px) {
  .contacto-card {
    padding: 1.5rem;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
  }
}


/* ----------- CONTENIDO INICIO ----------- */
/* ESTILOS GENERALES */

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background-color: #ffffff;
}

/* SECCIÓN 1: HERO CON IMAGEN DE MAQUINARIA */

.hero-inicio {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Imagen de fondo */
.hero-background {
  position: absolute;
  inset: 0;
  background-image: url("fotos/maquinas.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Capa oscura */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.6)
  );
  z-index: 2;
}

.hero-contenido {
  position: relative;
  z-index: 3;
  padding: 1.5rem;
  text-align: center;
  max-width: 900px;
}

.hero-frase {
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
}

/* SECCIÓN 2: NOSOTROS (FONDO OSCURO) */

.nosotros-inicio {
  background-color: #0b1220;
  color: #e5e7eb;
  padding: 4rem 1.5rem;
}

.nosotros-contenido {
  max-width: 900px;
  margin: 0 auto;
}

.nosotros-inicio h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.nosotros-inicio p {
  font-size: 1rem;
  line-height: 1.7;
}

/* SECCIÓN 3: MARCAS CON LAS QUE TRABAJAMOS */

.marcas-inicio {
  background-color: #ffffff;
  padding: 4rem 1.5rem;
}

.marcas-contenido {
  max-width: 1000px;
  margin: 0 auto;
}

.marcas-inicio h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #111827;
}

/* Grid para 9 logos */
.grid-marcas {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas fijas, centra todo */
  justify-items: center;                 /* centra cada logo */
  gap: 2rem;
}

/* Eliminé fondo gris, sin bordes, sin padding extra */
.logo-item {
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LOGOS AL DOBLE DE TAMAÑO */
.logo-item img {
  max-width: 100%;
  max-height: 160px; /* antes 80px */
  object-fit: contain;
  transition: transform 0.2s ease;
}

/* Hover suave */
.logo-item:hover img {
  transform: scale(1.2);
}

/* RESPONSIVE */

@media (max-width: 640px) {
  .nosotros-inicio,
  .marcas-inicio {
    padding: 3rem 1.25rem;
  }

  .marcas-inicio h2,
  .nosotros-inicio h2 {
    text-align: center;
  }
}

/* ----------- PÁGINA MARCAS ----------- */

.marcas-page {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Bloque general de cada marca */
.marca-section {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 3rem 1.5rem;
  justify-content: center;
}

/* Alternancia de colores */
.marca-light {
  background-color: #ffffff;
  color: #111827;
  flex-direction: row;          /* imagen izquierda, texto derecha */
}

.marca-dark {
  background-color: var(--azul);
  color: #ffffff;
  flex-direction: row-reverse;  /* imagen derecha, texto izquierda */
}

/* Contenedores internos */
.marca-logo img {
  max-width: 260px;
  max-height: 120px;
  width: 100%;
  object-fit: contain;
}

.marca-content {
  max-width: 700px;
}

.marca-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.marca-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Botones */
.btn-marca {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

/* Botón sobre fondo claro */
.marca-light .btn-marca {
  background-color: #0b1220;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

/* Botón sobre fondo oscuro */
.marca-dark .btn-marca {
  background-color: #ffffff;
  color: #0b1220;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.5);
}

.btn-marca:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .marca-section {
    flex-direction: column;
    text-align: left;
  }

  .marca-dark,
  .marca-light {
    flex-direction: column;
  }

  .marca-logo {
    display: flex;
    justify-content: center;
  }

  .marca-content {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .marca-section {
    padding: 2.5rem 1.25rem;
  }

  .marca-content h2 {
    font-size: 1.5rem;
  }
}

/* ----------- PÁGINA SOBRE NOSOTROS ----------- */

.about-page {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =============================
   SECCIÓN: MISIÓN Y VISIÓN
   ============================= */

.about-hero {
  background-color: var(--azul); /* FONDO AZUL OSCURO */
  padding: 4rem 1.5rem;
  color: #ffffff;
}

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

.about-text-block h1 {
  font-size: 2.1rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.about-intro {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.7;
  color: #d1d5db;
  margin-bottom: 2.5rem;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

.mv-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.mv-card h2 {
  font-size: 1.4rem;
  color: #0b1220;
  margin-bottom: 0.75rem;
}

.mv-card p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #4b5563;
}

/* =============================
   SECCIÓN: EL EQUIPO
   ============================= */

.equipo-section {
  background-color: #ffffff;
  padding: 4rem 1.5rem 4.5rem;
}

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

.equipo-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.equipo-header h2 {
  font-size: 1.9rem;
  color: #0b1220;
  margin-bottom: 0.75rem;
}

.equipo-header p {
  font-size: 1rem;
  color: #4b5563;
}

/* TARJETAS DE PERSONAS */

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.equipo-card {
  display: flex;
  flex-direction: column;
  background-color: var(--azul); /* azul corporativo */
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

/* Foto superior */
.equipo-foto img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Información debajo de la foto */
.equipo-info {
  padding: 0.6rem 0.6rem;
  color: #ffffff;

  /* CENTRAR TEXTO */
  text-align: center;
}

.equipo-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;

  /* Nombre centrado */
  text-align: center;
}

.equipo-rol {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.7rem;

  /* Cargo centrado */
  text-align: center;
}

/* ✔ LETRA MÁS PEQUEÑA EN LAS DESCRIPCIONES DEL EQUIPO */
.equipo-info p{
  list-style: disc;
  font-size: 0.8rem; /* LETRA MÁS PEQUEÑA */
  line-height: 1.55;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .about-cards {
    grid-template-columns: 1fr;
  }

  .equipo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .equipo-foto img {
    height: 240px;
  }
}

@media (max-width: 640px) {
  .about-hero,
  .equipo-section {
    padding: 3rem 1.25rem 3.5rem;
  }

  .equipo-grid {
    grid-template-columns: 1fr;
  }

  .equipo-header h2 {
    font-size: 1.6rem;
  }

  .about-text-block h1 {
    font-size: 1.8rem;
  }
}

/* LOGO RESPONSIVO PARA CELULARES */
@media (max-width: 600px) {
  .navbar img {
    max-height: 45px;   /* ajusta este valor si lo quieres más pequeño */
    width: auto;
  }

  .navbar {
    padding: 0.4rem 1rem; /* reduce padding para que todo quepa */
  }
}