/* Variables globales */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --text-color: #333;
  --light-color: #ecf0f1;
}

/* Reset y base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Share Tech', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* -------------------- NAVBAR -------------------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: #000;
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-logo {
  height: 50px;
  width: auto;
  display: block;
  margin: 0.25rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.navbar-menu a {
  margin-left: 2rem;
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.3s;
  text-transform: uppercase; /* ← Esto sí funciona */
}

.navbar-menu a:hover {
  color: #fff;
}


/* -------------------- HERO -------------------- */
.hero {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
              url('./assets/main_background.webp') center/cover;
  color: white;
  width: 100%;
  margin: 0;
  padding-left: 3vw;
  padding-right: 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-align: left;
  max-width: 600px;
  text-transform: uppercase;
}

.hero .subtitle {
  font-size: 1.5rem;
  text-align: left;
  max-width: 500px;
}

/* -------------------- SECCIONES -------------------- */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
  scroll-margin-top: 4rem;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 4rem 2rem;
}

/* -------------------- SERVICIOS -------------------- */
#servicios {
  background-color: #000;
  width: 100%;
  margin: 0;
  padding: 3rem 0; /* ↑ Agrega espacio arriba y abajo */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#servicios h2 {
  color: #fff;
  text-align: center;
  font-size: 3rem;
  margin-bottom: 2rem; /* ↑ Espacio entre título y tarjetas */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 1rem 0; /* ↓ Menos espacio abajo para subir visualmente */
  justify-content: center; /* Centra horizontalmente las tarjetas */
}

.service-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  min-height: 180px;
  background-color: rgba(120, 120, 120, 0.15); /* gris más frío y visible */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
  color: #f2f2f2;
  backdrop-filter: blur(6px); /* leve aumento para suavizar el fondo */
  border: 1px solid rgba(200, 200, 200, 0.12); /* contorno más definido */
  transition: transform 0.3s ease;
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-5px);
  background-color: rgba(120, 120, 120, 0.15); /* gris frío translúcido */
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08); /* sombra más suave */
}

.service-card h3 {
  color: #fff;
  margin-bottom: 1rem;
  pointer-events: none;
}

.service-card p {
  flex: 1;
  margin: 0;
  font-family: 'Playfair Display', serif;
  color: #fff;
  line-height: 1.6;
  pointer-events: none;
}
/* -------------------- CONTACTO -------------------- */
#contacto {
  background-image: url('./assets/fondo-contacto.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 2rem;
  color: #fff;
  filter: brightness(0.7) contrast(0.9);
}

#contacto .container {
  width: 100%;
  max-width: 400px;
  margin-left: 5vw;
  margin-right: auto;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 8px;
  color: #fff;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.button {
  background-color: #fdf6e3;
  color: #001f3f;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #e8e2d6;
}

.button i {
  margin-right: 8px;
}

/* -------------------- CONOCÉNOS -------------------- */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  padding-right: 2rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-image {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* -------------------- BOTONES FLOTANTES -------------------- */
/* BOTONES FLOTANTES */
.floating-info {
  position: absolute;
  top: 50%;
  right: 7vw;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10;
  width: 240px;
}

.info-item {
  background-color: #ffffff; /* ← Fondo blanco */
  color: #000; /* Texto oscuro para contraste */
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.toggle-btn {
  background-color: #ffffff; /* ← Fondo blanco */
  color: #000; /* Ícono oscuro */
  border: none;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-right: 0.5rem;
  font-weight: bold;
}

.toggle-btn:hover {
  background-color: #f0f0f0; /* Ligero sombreado al pasar el mouse */
}

/* BOTÓN “CONTACTAR AHORA” */
.button {
  background-color: #ffffff; /* ← Fondo blanco */
  color: #000; /* Texto oscuro */
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #f0f0f0; /* Suave gris al pasar el mouse */
}

/* -------------------- CONTENIDO DESPLEGABLE -------------------- */
.info-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0.5rem;
  color: #001f3f;
  font-size: 0.9rem;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.info-content.visible {
  max-height: 300px;
  opacity: 1;
  animation: fadeSlideIn 0.5s ease forwards;
}

.info-content.hidden {
  max-height: 0;
  opacity: 0;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
    max-width: 90%;
  }

  .hero .subtitle {
    font-size: 1.3rem;
    max-width: 90%;
  }

  .floating-info {
    right: 5vw;
    width: 200px;
  }
}

@media (max-width: 768px) {
  /* NAVBAR */

  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }

 .navbar-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow-y: auto;

  display: flex;
  flex-direction: column;
  margin-top: 0; /* se elimina para que arranque desde arriba */
  padding: 2rem;

  background-color: rgba(30, 30, 30, 0.6); /* gris oscuro translúcido */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: all 0.3s ease;
}

  .navbar-menu a {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #f2f2f2;
  text-decoration: none;
  transition: color 0.2s ease;
}

.navbar-menu a:hover {
  color: #ffffff;
}

  /* HERO */
  .hero {
    padding-left: 2rem;
    padding-right: 2rem;
    text-align: center;
    align-items: center;
  }

  .hero h1,
  .hero .subtitle {
    text-align: center;
    max-width: 100%;
  }

  /* CONOCÉNOS */
  .about-container {
    display: flex;
    flex-direction: column-reverse;
  }

  .about-text {
    padding-right: 0;
  }

  .about-image {
    margin-top: 1rem;
  }

  /* BOTONES FLOTANTES */
  .floating-info {
    position: static;
    transform: none;
    width: 100%;
    padding: 1rem;
    align-items: center;
  }

  .info-item {
    width: 100%;
  }

  /* SERVICIOS */
  .service-card {
    flex-direction: column;
    text-align: center;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .service-card p {
    font-size: 0.95rem;
  }

  /* CONTACTO */
  #contacto .container {
    max-width: 90%;
    margin: 0 auto;
    padding: 2rem 1rem;
  }

  .button {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }

  .social-links {
    gap: 0.75rem;
  }
}

/* -------------------- TOGGLE MENU -------------------- */
.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
  z-index: 1001;
}

@media (max-width: 768px) {

  .container h1 {
    line-height: 1.2em;
  }
  .menu-toggle {
    display: block;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem 2rem;
    z-index: 1000;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .navbar-menu.active {
    display: flex;
    backdrop-filter: blur(8px);
    background-color: rgba(20, 20, 20, 0.85); /* oscuro intermedio */
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
  }

  .navbar-menu a {
    margin: 1rem 0;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    text-align: center;
  }

  .navbar-menu a:hover {
    color: #ccc;
  }

  #contacto {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }
}

  .hero {
    padding-top: 6rem;
  }

/* -------------------- TIPOGRAFÍA GLOBAL -------------------- */

/* Títulos y botones en imprenta mayúscula */
h1, h2, h3, h4, h5, h6,
.button,
.service-card h3,
.info-title {
  text-transform: uppercase !important;
}

/* Descripciones en imprenta minúscula (respetando mayúsculas de inicio) */
p,
.service-card p,
.subtitle,
.info-content {
  text-transform: none;
  font-family: 'Share Tech', sans-serif;
}