/* VARIABLES */

:root {
  --bg: #020617;
  --text: #e2e8f0;
  --card: rgba(15, 23, 42, 0.65);
  --accent: #06b6d4;
  --secondary: #3b82f6;
}

.light {
  --bg: #ffffff;
  --text: #0f172a;
  --card: rgba(241, 245, 249, 0.9);
  --accent: #0891b2;
  --secondary: #2563eb;
}

/* BASE */

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

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* PROJECTS */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.project-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: var(--card);
  padding: 30px;
  border-radius: 10px;
  max-width: 800px;
  width: 90%;
  text-align: center;
}

.modal img {
  width: 100%;
  border-radius: 8px;
}

.close {
  font-size: 28px;
  cursor: pointer;
  float: right;
}

.carousel-controls {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-controls button {
  padding: 10px 15px;
  border: none;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

/* NAV */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 20px 8%;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.25);
  z-index: 999;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}

.logo p {
  font-weight: 700;
  font-size: 20px;
}

.logo {
  display: flex; /* Convierte el contenedor en flexbox */
  align-items: center; /* Centra verticalmente el texto y la imagen */
  gap: 10px; /* Opcional: añade espacio entre texto e imagen */
  /*flex-direction: row-reverse;  Cambia el orden: texto a la izq, imagen a la der */
}

/* HERO */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero h1 {
  font-size: 70px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  color: #94a3b8;
  max-width: 700px;
  margin: auto;
  margin-bottom: 30px;
}

/* ABOUT */
.about p {
  font-size: 20px;
  color: #94a3b8;
  max-width: 700px;
  margin: auto;
  margin-bottom: 30px;
}

/* BUTTON */

.btn {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  padding: 14px 30px;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
}

/* SECTIONS */

section {
  padding: 120px 10%;
  max-width: 1200px;
  margin: auto;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  font-size: 40px;
  margin-bottom: 40px;
}

/* CARDS */

.card {
  background: var(--card);
  padding: 30px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* TECH */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 30px;
  text-align: center;
}

.tech-grid img {
  width: 42px;
  margin-bottom: 10px;
}

/* CLIENTS */

.clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  align-items: center;
  opacity: 0.8;
}

.clients img {
  height: 40px;
  filter: grayscale(100%);
}

/* SERVICES */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* PROJECTS */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

/* PRICING */

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.price {
  font-size: 34px;
  margin: 20px 0;
}

/* FAQ */
.faq {
  max-width: 900px;
  margin: auto;
  display: grid;
  gap: 16px;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question i {
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.35s ease;
  line-height: 1.6;
  margin-top: 8px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  opacity: 1;
}

.faq-item.active i {
  transform: rotate(180deg);
}
/* CONTACT */

.contact {
  text-align: center;
}

/* WHATSAPP */

.whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
}

/* FOOTER */

footer {
  text-align: center;
  padding: 40px;
  color: #64748b;
}
