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

body {
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--text-muted);
  transition: 0.3s;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-size: 2.4rem;
}

.hero-tagline {
  font-size: 1.4rem;
  margin-top: 1rem;
  color: var(--text-muted);
}

.sobre-mi-texto {
  margin-top: 2rem;
}

nav a,
.btn {
  font-family: var(--font-title);
  color: var(--text);
}

p {
  font-size: 1.4rem;
}

header {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text);
}

#themeToggle {
  background: none;
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

section {
  max-width: 1100px;
  margin: auto;
  padding: 4rem 2rem;
}

#inicio h2 {
  margin-bottom: 1rem;
}

#inicio p {
  max-width: 700px;
  color: var(--text-muted);
}

.acciones {
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
}

.btn {
  background: var(--primary);
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
}

.btn-secundario {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.tecnologias {
  width: 100%;
  margin-top: 2rem;
}

/* GRID REAL PARA ICONOS */
.grid-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}

/* CONTENEDOR DEL ICONO */
.tecnologias span {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ICONO */
.tecnologias span i {
  color: var(--text);
  opacity: 1;
}

/* HOVER PROFESIONAL */
.tecnologias span:hover {
  transform: translateY(-6px) scale(1.05);
  opacity: 1;
}


.grid-proyectos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.proyecto {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proyecto:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/*se debe borrar*/
.landing_page {
  background-image: url("../imgs/landing_page.png");
}

.landing_page,
.formulario,
.todolist,
.devsheet {
  width: 100%;
  height: 300px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  object-fit: cover;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.formulario {
  background-image: url("../imgs/formulario.png");
}

.todolist {
  background-image: url("../imgs/todolist.png");
}

.devsheet {
  background-image: url("../imgs/devsheet.png");
}

.proyecto_destacado {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg,
      var(--bg-secondary),
      var(--bg));
}


.landing_page img {
  width: 100%;
  height: auto;
}

.landing_page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.1),
      rgba(0, 0, 0, 0.4));
  border-radius: 12px;
}


.proyecto h4 {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.proyecto p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0.5rem 0;
}

#proyectos h3 {
  margin-top: 3rem;
  border-left: 4px solid var(--primary);
  padding-left: 0.8rem;
}

.proyecto small {
  display: block;
  margin-top: 0.5rem;
  opacity: 0.7;
}


.proyecto-links a {
  color: var(--primary);
  margin-right: 1rem;
  text-decoration: none;
}

.btn-demo {
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
}

.nota-venta {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  opacity: 0.6;
}

.ver-mas-container {
  margin-top: 3rem;
  text-align: center;
}

form {
  margin-top: 4%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}

button[type="submit"] {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.7rem;
  border-radius: 6px;
  cursor: pointer;
}

.redes {
  margin-top: 5%;
}

.redes a {
  text-decoration: none;
  padding: 10px;
}

.redes a:hover {
  color: var(--primary);
}

.redes a i {
  font-size: 3rem;
  color: var(--primary);
}

footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

footer :nth-child(1) {
  margin-top: 1rem;
  font-size: 1rem;
}

footer :nth-child(2) {
  margin-top: 1rem;
  font-size: 0.8rem;
}

footer :nth-child(3) a {
  text-decoration: none;
  color: var(--primary);
}

/* ANIMACIONES SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.proyecto {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proyecto:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.btn,
button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  h2 {
    font-size: 2rem;
  }

  p {
    font-size: 1rem;
  }

}

#contacto {
  text-align: center;
  padding: 4rem 1rem;
}

#contacto h4 {
  text-align: center;
}

#contacto h4 p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

#contacto .email a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

#contacto .email a:hover {
  text-decoration: underline;
}

#formStatus {
  margin-top: 1rem;
  font-size: 0.95rem;
}

form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}