/* ---------------- VARIABLES DE COLOR ---------------- */
:root {
  --primary: #5271FF;
  --secondary: #39D2C0;
  --tertiary: #EE8B60;
  --alternate: #E0E3E7;

  --text-primary: #14181B;
  --text-secondary: #57636C;

  --bg-primary: #F1F4F8;
  --bg-secondary: #FFFFFF;

  --success: #249689;
  --error: #FF5963;
  --warning: #FFE401;
  --info: #FFFFFF;
}

/* ---------------- RESET ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
}

a {
  text-decoration: none;
  color: inherit;
  position: relative;
}

/* ---------------- NAVBAR ---------------- */
header {
  background: var(--primary);
  color: var(--bg-secondary);
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.logo {
  width: 150px;
  height: auto;
}

.navbar ul {
  display: flex;
  list-style: none;
}

.navbar ul li {
  margin-left: 20px;
}

.navbar ul li a {
  color: var(--bg-secondary);
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 5px;
  transition: color 0.3s ease, background 0.3s ease;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  color: yellow;
  background: rgba(255, 255, 255, 0.15);
}

/* ---------------- HERO ---------------- */
.hero-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: 60px; /* espacio debajo del header */
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}


.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(rgba(20,24,27,0.7), rgba(20,24,27,0.7));
  z-index: 1;
}

.hero {
  position: relative;
  min-height: calc(100vh - 60px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.iso {
  margin-top: 5px;
  height: 200px;
}

.descripcion {
  text-align: center;
    font-weight: bold; /* Hace la letra bold */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra del texto */
    color: #FFFFFF; /* Color del texto (opcional) */
    font-size: x-large; 
}

.descripcionDescarga {
  text-align: center;
    font-weight: bold; /* Hace la letra bold */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra del texto */
    color: #FFE401; /* Color del texto (opcional) */
    font-size: x-large; 
}

/* ---------------- BOTONES ---------------- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:hover {
  background: var(--tertiary);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.btn-container {
  text-align: center;
  margin-top: 30px;
}

/* ---------------- SECCIONES ---------------- */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary);
  font-size: 2rem;
}

h3 {
  text-align: center;
  color: var(--tertiary);
}

/* ---------------- CARDS ---------------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-secondary);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.card-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 15px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.2);
  color: var(--tertiary);
}

.card h3 {
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.card p {
  color: var(--secondary);
  transition: color 0.3s ease;
}

.card:hover h3,
.card:hover p {
  color: var(--primary);
}

/* ---------------- CONTACTO ---------------- */
#contact {
  width: 100%;                
  background: var(--bg-secondary); /* fondo blanco de todo el ancho */
  color: var(--text-primary);
  padding: 80px 20px;          
}

#contact form {
  max-width: 600px;            
  margin: 0 auto;              
  display: flex;
  flex-direction: column;
}

#contact form input,
#contact form textarea {
  padding: 12px;
  margin: 10px 0;
  border: 2px solid var(--alternate);
  border-radius: 8px;
  font-size: 1rem;
  background: #ffffff; /* fondo de los inputs en blanco */
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

#contact form input:focus,
#contact form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 6px var(--secondary);
}

#contact form button {
  background: var(--primary);
  color: var(--bg-secondary);
  border: none;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 10px;
  transition: background 0.3s ease, transform 0.2s ease;
}

#contact form button:hover {
  background: var(--tertiary);
  transform: translateY(-2px);
}


/* ---------------- REDES SOCIALES ---------------- */
.social-bar {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin: 40px 0;
}

.social-bar a {
  font-size: 40px;           /* iconos más grandes */
  color: var(--secondary);
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-bar a:hover {
  color: var(--primary);
  transform: scale(1.3);     /* efecto hover más grande */
}

/* Responsive: ajustar iconos en móvil */
@media (max-width: 480px) {
  .social-bar a {
    font-size: 32px;
  }
  .social-bar { gap: 40px; }
}


/* ---------------- FOOTER ---------------- */
footer {
  background: var(--bg-secondary);
  color: var(--secondary);
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

/* ---------------- MODAL ---------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  width: 100%; height: 100%;
  background: rgba(20,24,27,0.8);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  animation: scaleUp 0.3s ease;
}

.modal-content h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

.modal-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.5;
}
.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2rem;   /* tamaño claro y visible */
  font-weight: bold;
  color: var(--secondary);
  background: none;  /* sin fondo raro */
  border: none;      /* que no parezca botón */
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.close:hover {
  color: var(--primary);
  transform: scale(1.2);
}


/* Animaciones */
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
@keyframes scaleUp { from {transform: scale(0.7);} to {transform: scale(1);} }


/* ---------------- RESPONSIVE ---------------- */

/* ---------------- MOCKUPS ---------------- */
.mockup {
  display: block;
  margin: 20px auto 0 auto; /* margen superior 20px */
  max-width: 60%;           /* nunca más grande que el contenedor */
  width: 100%;               /* ocupa todo el ancho disponible */
  height: auto;              /* mantiene proporción */
  box-sizing: border-box;    /* incluye padding en el ancho */
}

/* Responsive: móvil */
@media (max-width: 480px) {
  .mockup {
    width: 100%;         /* fuerza que ocupe todo el ancho */
    max-width: 100%;     /* nunca se salga del contenedor */
    padding: 0 15px;     /* margen interno para no tocar bordes */
    margin-top: 15px;    /* margen superior reducido */
    height: auto;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .hero h2 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  .navbar ul {
    flex-direction: column;
    position: absolute;
    top: 60px; right: 0;
    background: var(--primary);
    width: 200px;
    display: none;
  }

  .navbar ul.show { display: block; }
  .navbar ul li { margin: 15px; }

 /* Botón toggle (3 rayitas) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color:var(--alternate); /* Cambia el color de las rayitas */
  border-radius: 2px;
}

  .social-bar a { font-size: 22px; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 20px 60px; }
  .hero h2 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; }
  .btn { padding: 10px 18px; font-size: 0.9rem; }
  section { padding: 50px 15px; }
  section h2 { font-size: 1.5rem; }
  .card { padding: 15px; }
  form input, form textarea { font-size: 0.9rem; }
  form button { font-size: 0.95rem; padding: 12px; }
  .social-bar { gap: 40px; }
}

@media (min-width: 769px) {
  .menu-toggle { display: none; }
}