/* =====================
   RESET / BASE
===================== */
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
}


.logo {
    font-size: 1.5rem;
    font-weight: bold;   
}

.logo img{
  width: 170px;
  height: auto;
}


/* =====================
   SPLASH / BIENVENIDA
===================== */
#splash-contact{
  position: fixed;
  inset: 0;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  color:  #1e3a8a;
  transition: opacity 0.8s ease;
}

#splash-contact svg {
  width: 100px;
  margin-top: 20px;
}

#splash-contact.fade-out {
  opacity: 0;
  pointer-events: none;
}
/* Contenido con fade */
#contenido {
  opacity: 0;
  transition: opacity 0.8s ease;
}

#contenido.show {
  display: block;
  opacity: 1;
}

/* =====================
   BODY / BACKGROUND
===================== */
body {
  background: linear-gradient(to bottom, #ffffff, #dbe7ff, #4a90e2);
  min-height: 100vh;
  color: black;
}

h2{
  text-align:center;
  margin-top: 30px;
}

/* Fieldset con borde celeste */
.contact-form fieldset {
  border: 2px solid #4da3ff; /* azul celeste */
  border-radius: 12px;
  padding: 20px;
  background: rgba(77, 163, 255, 0.05); 
  /* azul suave transparente */
  margin-top: 40px;
}

/* Título del fieldset */
.contact-form legend {
  padding: 0 10px;
  color: black;
  font-size: 1.1rem;
}

/* Cada grupo */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

/* Labels */
.form-group label {
  margin-bottom: 5px;
  color: black;
  font-weight: 500;
}

/* Inputs */
.form-group input {
  padding: 10px;
  border-radius: 8px;
  border: 1.5px solid #4da3ff;
  background: white; /* oscuro para contrastar */
  color: black;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
}

/* Efecto al enfocar */
.form-group input:focus {
  border-color: #7cc0ff;
  box-shadow: 0 0 8px rgba(77, 163, 255, 0.6);
}

/* Botones */
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.form-actions button {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  background: linear-gradient(135deg, #4da3ff, #7cc0ff);
  color: #0b1220;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Hover en botones */
.form-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(77, 163, 255, 0.4);
}

/* Botón limpiar un poco diferente */
#clean {
  background: linear-gradient(135deg, #cccccc, #eeeeee);
  color: #111;
}

/* =====================
   SPLASH / BIENVENIDA
===================== */
#splash {
  position: fixed;
  inset: 0;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.4s ease;
}

#splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Contenido principal */
#contenido {
  opacity: 1;
  transition: opacity 0.4s ease;
}

#contenido.fade-out {
  opacity: 0;
}

/* Contenido oculto al inicio */
.hidden {
  display: none;
}
/* contenido al body */
body.fade-out {
  transition: opacity 0.4s ease;
  background: #f5f5f5; /* o un color sólido similar al splash */
}
body.fade-in {
  animation: bodyFadeIn 0.4s ease forwards;
}

@keyframes bodyFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =====================
   HEADER
===================== */
.side-header {
  background-color: #1e3a8a;
  color: white;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 16px;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.menu-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* =====================
   NAV / MENÚ
===================== */
#lista {
  display: none; /* por defecto */
  flex-direction: column;
  position: fixed;
  right: 0;
  top: 80px;
  width: 200px;
  background: rgba(0,0,0,0.9);
  border-radius: 6px;
  padding: 10px;
}

#lista.show {
  display: flex;
}

#lista ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#lista li {
  margin: 5px 0;
}

#lista a {
  color: white;
  text-decoration: none;
}

/* =====================
   FORMULARIO
===================== */
form {
  width: 300px;
  margin: 20px auto;
}

input {
  width: 90%;
  padding: 8px;
  margin: 6px 0;
  border-radius: 5px;
  border-color: white;
}

textarea {
  width: 60%;
  min-height: 30px;
  padding: 10px;
  border-radius: 6px;
  margin-left: 30px;
}

#btn-comentario {
  margin-top: 10px;
  margin-left: 30px;
  padding: 10px;
  border-radius: 6px;
  background: #25D366;
  color: white;
  border: none;
  cursor: pointer;
}

/* =====================
   CONTACTO DIRECTO
===================== */
.llamar-link,
.facebook-link,
.whats-link,
.github-link {
  display: inline-flex;          /* mejor alineación del texto */
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  text-align: center;
  width: 110px;                  /* 🔹 TODOS del mismo ancho */
  box-sizing: border-box;        /* evita desbordes raros */
}

/* Colores individuales */
.llamar-link { background-color: green; }
.facebook-link { background-color: #4267B2; }
.whats-link { background-color: #25D366; }
.github-link { background-color: black; }

/* Contenedores */
.contact-row,
.twobtn {
  display: flex;
  gap: 20px;            /* 🔹 espacio uniforme entre botones */
  margin-bottom: 20px;  /* 🔹 espacio uniforme entre filas */
  justify-content: center; /* opcional: centra los botones */
}

/* =====================
   FOOTER
===================== */
#footer {
  background-color: black;
  color: white;
  padding: 10px;
  text-align: center;
}

/* =====================
   MEDIA QUERIES
===================== */

/* =====================
   DESKTOP OPTIMIZADO
===================== */
@media (min-width: 768px) {

  /* Contenedor principal más amplio */
  .contact-form {
    max-width: 800px;
  }

  form {
    width: 600px;
  }

  /* Inputs ocupan todo el ancho */
  .form-group input {
    width: 95%; /* ancho del inpur*/
  }

    /* =====================
   COMENTARIOS
===================== */
.comentario-box{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
  margin-top:20px;
  flex-wrap:wrap;
}

#comentario{
  width:350px;
  min-height:40px;
  padding:10px;
  border-radius:6px;
}

#btn-comentario{
  padding:10px 15px;
  border-radius:6px;
  background:#25D366;
  color:white;
  border:none;
  cursor:pointer;
}

  /* Header más espacioso */
  .header-inner {
    padding: 30px 80px;
  }

  .logo {
    font-size: 2rem;
  }

  /* Menú */
  #lista {
    top: 90px;
    width: 220px;
  }

  #llamar-link,
  #facebook-link,
  #whats-link,
  #github-link {
    width: 160px;
    padding: 14px 20px;
    font-size: 1rem;
  }

  /* Filas mejor distribuidas */
  .contact-row,
  .twobtn {
    gap: 40px;
  }

  /* Footer más amplio */
  #footer {
    padding: 20px;
    font-size: 1rem;
  }

}

