/* ===== VARIABLES ===== */
:root {
  --primary: #0770b4;
  --secondary: #2eaa52;
  --secondary-hover: #93c353;
  --dark: #333;
  --light: #f5f7f9;
  --white: #ffffff;
  --gray: #eef4f8;
  --shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  --container-width: 1100px;
}

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  padding-top: 70px;
}

/* ===== CONTENEDOR CENTRADO ===== */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== TIPOGRAFÍA ===== */
h1,
h2,
h3 {
  text-align: center;
  margin-bottom: 20px;
}

h1 {
  font-size: 2rem;
  color: var(--primary);
}

h2 {
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 30px;
}

h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* ===== SECCIONES ===== */
section {
  padding: 60px 0;
}

section.alt {
  background: var(--gray);
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
  padding: 5px;
}

.nav-menu {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background: var(--white);
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  gap: 15px;
}

.nav-menu.active {
  display: flex;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: bold;
  padding: 10px;
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--gray);
  color: var(--primary);
}

/* ===== HERO SECTION - CORREGIDO CON LOGO RESPONSIVO ===== */
.hero {
  min-height: calc(100vh - 70px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95)),
    url("../img/tech-bg.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* LOGO GRANDE - Tamaños aumentados significativamente */
.hero-logo {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 200px; /* Aumentado de 120px a 200px */
  margin-bottom: 30px;
  object-fit: contain;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
}

/* ===== ABOUT SECTION ===== */
.about-text {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.mission-card,
.vision-card {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
}

.mission-card h3,
.vision-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

.mission-card p,
.vision-card p {
  color: #555;
  line-height: 1.6;
}

.values-section {
  text-align: center;
}

.values-intro {
  max-width: 700px;
  margin: 0 auto 30px;
  color: #555;
  font-size: 1.1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.value-item {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.value-item h4 {
  color: var(--secondary);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.value-item p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ===== PRODUCTOS ===== */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  text-align: center;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: var(--secondary);
  margin-bottom: 10px;
}

.card p {
  color: #666;
  font-size: 0.95rem;
}

/* ===== LOGOS (Marcas y Clientes) ===== */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.logo-item {
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  transition: all 0.3s;
}

.logo-item:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.logo-item img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.logo-item:hover img {
  opacity: 1;
}

/* ===== WHY US ===== */
.why-us-content {
  max-width: 900px;
  margin: 0 auto;
}

.why-us-text {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 40px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.benefit-item {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.benefit-item h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.benefit-item p {
  color: #666;
  font-size: 0.95rem;
}

.why-us-message {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, var(--primary), #0a5a8c);
  border-radius: 10px;
  color: var(--white);
}

.highlight-message {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.thank-you-message {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffd700;
}

/* ===== CONTACTO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.contact-info {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-item {
  text-align: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item h4 {
  color: var(--primary);
  margin-bottom: 5px;
}

.contact-item p {
  color: #666;
  font-size: 1rem;
}

.contact-cta {
  text-align: center;
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-cta p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #444;
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 30px 0;
}

.footer-message {
  margin-top: 15px;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  z-index: 100;
  transition: transform 0.3s;
}

.whatsapp:hover {
  transform: scale(1.1);
}

.whatsapp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== MEDIA QUERIES ===== */

/* MÓVIL (hasta 767px) */
@media (max-width: 767px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-logo {
    max-height: 150px; /* Logo más pequeño en móvil */
    margin-bottom: 20px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    padding: 0 15px;
  }

  .hero-content p {
    font-size: 1rem;
    padding: 0 15px;
    margin-bottom: 20px;
  }

  .values-grid {
    grid-template-columns: 1fr; /* Una columna en móvil */
    gap: 15px;
  }

  .logos-grid {
    grid-template-columns: 1fr; /* Una columna en móvil */
  }

  .logo-item {
    height: 80px; /* Más pequeño en móvil */
  }

  .btn {
    padding: 10px 25px;
    font-size: 0.95rem;
  }
}

/* TABLET (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  body {
    padding-top: 80px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .mobile-menu-btn {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    width: auto;
    background: none;
    padding: 0;
    box-shadow: none;
    flex-direction: row;
  }

  .nav-menu a {
    margin-left: 15px;
    font-size: 0.95rem;
  }

  .hero-logo {
    max-height: 100px; /* Tamaño intermedio para tablet */
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-vision-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .whatsapp {
    width: 55px;
    height: 55px;
  }
}

/* DESKTOP (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
  body {
    padding-top: 80px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .mobile-menu-btn {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    width: auto;
    background: none;
    padding: 0;
    box-shadow: none;
    flex-direction: row;
  }

  .nav-menu a {
    margin-left: 20px;
    font-size: 1rem;
  }

  .hero-logo {
    max-height: 110px;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .logos-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-menu a {
    font-size: 1.1rem;
  }
}

/* DESKTOP GRANDE (1200px+) */
@media (min-width: 1200px) {
  body {
    padding-top: 80px;
  }

  h1 {
    font-size: 3rem;
  }

  .mobile-menu-btn {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    width: auto;
    background: none;
    padding: 0;
    box-shadow: none;
    flex-direction: row;
  }

  .nav-menu a {
    margin-left: 25px;
    font-size: 1.1rem;
  }

  .hero-logo {
    max-height: 360px; /* Tamaño original para desktop */
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .logos-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* AJUSTE EXTRA PARA PANTALLAS MUY PEQUEÑAS */
@media (max-width: 480px) {
  .hero-logo {
    max-height: 60px; /* Aún más pequeño en pantallas muy pequeñas */
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
