/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  background-image: url(fondopagina.jpg);
  color: #03396c;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #03396c;
}

p {
  text-align: justify;
}

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1000;
  height: auto;              /* Altura automática */
  padding: 0.8rem 0;         /* Más compacto */
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.35s ease;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.5rem 0;         /* Menos espacio interno */
  text-align: center;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.header-title {
  font-size: 1.6rem;         /* Texto más pequeño */
  font-weight: 700;
  text-align: center;
  width: 100%;
  margin: 0.2rem 0;          /* Reduce separación */
}

.header-subtitle {
  font-size: 1rem;           /* Texto más pequeño */
  margin: 0.2rem 0 0.5rem 0; /* Reduce separación */
  text-align: center;
  width: 100%;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.3rem;        /* Espacio reducido arriba */
}

.social-icons img {
  width: 32px;
  transition: transform 0.25s;
}

.social-icons img:hover {
  transform: scale(1.15);
}

/* ================= MAIN ================= */
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section {
  background: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #cce7ff;
}

/* ================= SECCIÓN SPLIT ================= */
.section-split {
  display: flex;
  width: 100%;
  height: 80vh;
}

.image-side {
  flex: 1;
  overflow: hidden;
}

.image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-side {
  flex: 1;
  padding: 40px;            /* Padding ligeramente reducido */
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: rgb(243, 226, 152);
}

/* ================= LISTA SERVICIOS ================= */
.services-list {
  list-style: disc inside;
}

/* ================= FORMULARIO ================= */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form input,
form textarea {
  padding: 0.8rem;
  border: 1px solid #bcdff1;
  border-radius: 6px;
}

form button {
  background: #03396c;
  color: #fff;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
}

form button:hover {
  opacity: 0.9;
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 2rem;
  background: #cce7ff;
}

/* ========== RESPONSIVE (MÓVIL Y TABLET) ========== */
@media (max-width: 768px) {

  /* Header */
  .site-header {
    padding: 0.6rem 0.5rem;
  }

  .logo img {
    width: 70px;
    height: 70px;
  }

  .header-title {
    font-size: 1.4rem;
    margin: 0.2rem 0;
  }

  .header-subtitle {
    font-size: 0.95rem;
    margin: 0.2rem 0 0.4rem 0;
  }

  .social-icons {
    margin-top: 0.2rem;
  }

  /* Main */
  main {
    margin: 1rem auto;
    padding: 0 0.8rem;
  }

  section {
    padding: 1.2rem;
  }

  section h2 {
    font-size: 1.4rem;
  }

  /* Sección split adapta a vertical */
  .section-split {
    flex-direction: column;
    height: auto;
  }

  .image-side img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
  }

  .text-side {
    padding: 1rem;
  }

  /* Texto */
  p, li {
    text-align: left;
    font-size: 1rem;
  }

  /* Formulario */
  form input,
  form textarea {
    font-size: 1rem;
    padding: 0.7rem;
  }

  form button {
    padding: 0.8rem;
    font-size: 1.05rem;
  }

  /* Footer */
  footer {
    padding: 1rem;
    font-size: 0.9rem;
  }
}

