/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff;
  background-color: #0b1118;
  line-height: 1.6;
}

/* ===== CONTENEDOR GENERAL ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
  background-color: rgba(14, 22, 33, 0.95);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.logo {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: #d1d5db;
  font-size: 18px;
  font-weight: 550;
  transition: color 0.3s;
}

.nav a:hover {
  color: #58a6ff;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0b1118 40%, #162332 100%);
  color: #fff;
  text-align: center;
  padding: 7rem 2rem;
}

.hero-logo {
  width: 300px;
  margin-bottom: 2rem;
  animation: latido-oro 7s ease-in-out infinite alternate;
}

@keyframes latido-oro {
  0% {
    filter: drop-shadow(0 0 20px rgba(88, 166, 255, 0.7));
  }

  30% {
    filter: drop-shadow(0 0 24px rgba(88, 166, 255, 0.8));
  }

  40% {
    filter: drop-shadow(0 0 20px rgba(88, 166, 255, 0.9));
  }

  55% {
    filter: drop-shadow(0 0 32px rgba(88, 166, 255, 1));
  }

  100% {
    filter: drop-shadow(0 0 42px rgba(88, 166, 255, 1));
  }
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 4rem;
  color: #c7d0da;
}

.btn {
  background-color: #58a6ff;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.btn:hover {
  background-color: #1f6feb;
  transform: translateY(-2px);
}

/* ===== SECCIONES ===== */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #58a6ff;
}

/* ===== SERVICIOS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: linear-gradient(160deg, #101a26, #0b1118);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #1f2b3a;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.15);
}

.service-card h3 {
  color: #58a6ff;
  margin-bottom: 1rem;
}

/* ===== SOBRE NOSOTROS ===== */

.about-text {
  background: rgba(88, 166, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(88, 166, 255, 0.25);
  padding: 50px;
}

.section-title-about {
  color: #58A6FF;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center;
}

/* ===== CONTACTO ===== */

#contacto p {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.9rem;
  border: 1px solid #1f2b3a;
  border-radius: 6px;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 3rem;
  margin-bottom: 1rem;
}












/* ===========================
   RESPONSIVE ADAPTATIONS
   =========================== */

/* --- Global adjustments for smaller screens --- */
@media (max-width: 900px) {
  .container {
    width: 94%;
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero {
    padding: 5.5rem 1.5rem;
  }

  .hero-logo {
    width: 220px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .service-card {
    padding: 1.6rem;
  }

  .about-text {
    padding: 36px;
  }
}

/* --- Mobile: stack header and nav, enlarge tappable targets --- */
@media (max-width: 600px) {
  /* Header: stack logo and nav vertically */
  .header .container {
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
  }

  .logo {
    font-size: 1.6rem;
  }

  /* Nav: vertical and full-width touch-friendly links */
  .nav ul {
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
  }

  .nav a {
    display: inline-block;
    padding: 0.6rem 0.4rem;
    width: 100%;
    border-radius: 6px;
  }

  .nav a:hover {
    background: rgba(88,166,255,0.06);
    color: #58a6ff;
  }

  /* Hero smaller */
  .hero {
    padding: 4.2rem 1rem;
  }

  .hero-logo {
    width: 180px;
    margin-bottom: 1.2rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  /* Services grid: single column for easy reading */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* About grid: single column */
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* Contact form: full width and larger inputs for touch */
  .contact-form {
    max-width: 100%;
    gap: 0.9rem;
    padding: 0 0.3rem;
  }

  .contact-form input,
  .contact-form textarea,
  .btn {
    font-size: 1rem;
    padding: 0.95rem;
  }

  /* Footer spacing */
  .footer {
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: center;
  }
}

/* --- Medium screens (tablet landscape) --- */
@media (min-width: 601px) and (max-width: 900px) {
  .nav ul {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .hero-logo {
    width: 240px;
  }
}

/* --- Minor polish: inputs full width and consistent focus styles --- */
.contact-form input,
.contact-form textarea {
  width: 100%;
  background-color: #ffffff !important;
  color: #000 !important;
  border: 1px solid #1f2b3a !important;
  outline: none;
  transition: box-shadow 0.18s, border-color 0.18s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(88,166,255,0.9);
  box-shadow: 0 6px 20px rgba(88,166,255,0.06);
}

/* Make the CTA buttons slightly larger on touch devices */
@media (hover: none) and (pointer: coarse) {
  .btn {
    padding: 1rem 1.4rem;
    font-size: 1rem;
  }
}

/* Accessibility: larger focus ring for keyboard users */
:focus {
  outline: 3px solid rgba(88,166,255,0.18);
  outline-offset: 2px;
}

/* Keep hero image responsive and centered on very small screens */
@media (max-width: 420px) {
  .hero-logo {
    width: 160px;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }
}


/* ===== HAMBURGER BUTTON ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: #58a6ff;
  border-radius: 2px;
  transition: 0.3s;
}

/* MOBILE */
@media (max-width: 600px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    width: 100%;
    margin-top: 10px;
    background: rgba(14, 22, 33, 0.98);
    border-radius: 6px;
    padding: 10px 0;
  }

  .nav ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .nav a {
    padding: 12px 20px;
    display: block;
    width: 100%;
  }

  /* Cuando el menú está activo */
  .nav.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
  }

  /* Animación */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

