/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior:smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #f5f5f5; /* fondo claro neutro para contraste */
}

/* Header */
header {
  background-color: #0b1633; /* azul oscuro de tu logo */
  color: #ffffff; /* texto blanco */
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
}

/* Menú */
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu li a {
  text-decoration: none;
  color: #ffffff; /* texto blanco */
  font-weight: 500;
  transition: color 0.3s;
}

.menu li a:hover {
  color: #1db9ff; /* azul más claro para destacar al pasar el mouse */
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #ffffff;
}

/* Secciones de ejemplo */
section {
  padding: 100px 20px;
  border-bottom: 1px solid #ddd;
  background-color: #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
  .menu {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #0b1633; /* mismo azul oscuro */
    flex-direction: column;
    width: 200px;
    padding: 20px;
    gap: 15px;
    display: none; /* oculto por defecto */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }

  .menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* Hero con imagen */
.hero {
  background-color: #0b1633;
  color: #ffffff;
  padding: 40px 20px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items:start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero .btn {
  background-color: #1db9ff;
  color: #ffffff;
  padding: 12px 30px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.hero .btn:hover {
  background-color: #0fa0d1;
}

.hero-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-image {
    margin-top: 30px;
  }
}

/**/
.seccion {
  background-color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.seccion h2 {
  color: #0b1633;
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
}

.seccion h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #0b1633;
  margin: 10px auto 0;
  border-radius: 2px;
}

.seccion p {
  max-width: 700px;
  margin: 0 auto;
  color: #333;
  line-height: 1.7;
  font-size: 1.1rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.proyecto {
  background-color: #f8f9fc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proyecto:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.proyecto-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  background-color: #e9ecf3;
  color: #0b1633;
  font-weight: bold;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Contenedor y texto --- */
.contacto {
  text-align: center;
  padding: 60px 20px;
}

.contacto h2 {
  color: #0b1633;
  margin-bottom: 10px;
  font-size: 2rem;
}

.contacto p {
  color: #333;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* --- Redes sociales --- */
.iconos-redes {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  margin-top: 20px;
}

.icono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-size: 2rem;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

.icono.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.icono.facebook {
  background-color: #1877F2;
}

.icono.whatsapp {
  background-color: #25D366;
}

.icono:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- Formulario --- */
.formulario {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.formulario input,
.formulario textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.formulario input:focus,
.formulario textarea:focus {
  border-color: #0b1633;
  outline: none;
}

.formulario button {
  background-color: #0b1633;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.formulario button:hover {
  background-color: #1d2d5f;
}

/* --- Media Queries para móviles y tablets --- */
@media (max-width: 768px) {
  .iconos-redes {
    gap: 15px; /* menos espacio en pantallas pequeñas */
  }

  .icono {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .contacto h2 {
    font-size: 1.8rem;
  }

  .contacto p {
    font-size: 1rem;
  }

  .formulario {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .iconos-redes {
    gap: 10px;
  }

  .icono {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .contacto h2 {
    font-size: 1.6rem;
  }

  .contacto p {
    font-size: 0.95rem;
  }
}


.footer {
  background-color: #0b1633;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
}

.contenedor-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.volver-arriba {
  display: inline-block;
  margin: 10px 0;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.volver-arriba:hover {
  color: #1d2d5f;
}

/* Redes sociales mini */
.footer-redes {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.icono-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s;
}

/* Colores de fondo por red */
.icono-footer.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.icono-footer.facebook {
  background-color: #1877F2;
}

.icono-footer.whatsapp {
  background-color: #25D366;
}

/* Hover */
.icono-footer:hover {
  transform: scale(1.2);
}

/* Scroll suave al hacer clic en "Volver arriba" */
html {
  scroll-behavior: smooth;
}
