
/*  
  Estilos desarrollados por @Nudaro  
  Fecha: [30/09/2025]  
  Proyecto: Mundo Inmigrante 
  Contacto: studioyfocus@gmail.com
*/


/* ==============================
  servicios.css - Header + Hero + Servicios
   ============================== */

/* ---- Variables (opcionales) ---- */
:root{
  --header-height: 105px;
  --color-header: #7a0404;
  --hero-height: 85vh;
  --hero-min-height: 420px;
  --hero-overlay: rgba(1,3,9,0.5);
  --font-stack: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max-content: 2000px;
  --gutter: 20px;
  --cta-bg: #B22234;
  --cta-bg-hover: #8b1a25;
}

/* ---- Reset / Base ---- */
* { box-sizing: border-box; }
html, body { height: 100%; width: 100%; margin:0; font-family: var(--font-stack); line-height:1.6; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; padding-top: var(--header-height); background:#fff; }

/* ----------------------
  HEADER
   ---------------------- */
header {
  background: var(--color-header);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 35px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  opacity: 0.9;
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
  transition: background 250ms ease, box-shadow 250ms ease;
}
header .logo { display:flex; align-items:center; gap:20px; padding-left:25px; }
header .logo img { border-radius:10px; height:65px; width:auto; display:block; }
header .logo span { font-size:2.3rem; font-weight:700; margin-left:15px; color:#fff; line-height:1; }
.h1-link { display:flex; align-items:center; gap:12px; color:#fff; text-decoration:none; }
header .logo span:hover { outline: 2px solid rgba(255,255,255,0.851); border-radius:15px; padding:8px; text-shadow:0 0 4px rgba(255,255,255,0.25);}
header nav ul.menu { list-style:none; display:flex; gap:30px; font-size:1.3rem; padding-right:40px; margin:0; align-items:center; }
header nav ul li { position: relative; }
header nav a { color:#fff; text-decoration:none; font-weight:500; padding:8px 15px; border-radius:8px; transition: background 0.5s ease, color 0.5s ease, transform 120ms ease; }
header nav a:hover, header nav a:focus { color:#0f0cc8; background:#fff; font-weight:700; transform: translateY(-2px); outline:none; box-shadow:0 6px 18px rgba(0,0,0,0.12); }

/* Botón hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Redes sociales en el header */
.header-socials {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex: 1; /* ocupa el espacio del medio */
  margin-left: 145px;
}

.header-socials a {
  color: #fff;
  font-size: 1.4rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.header-socials a:hover {
  color: #0084ff; /* dorado elegante al pasar */
  transform: scale(1.2);
}

/* ----------------------
  HERO
   ---------------------- */
.hero-servicios {
  position: relative;
  width: 100%;
  height: calc(99vh - 105px); /* Ajustando altura restando header */
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background-image: url("ServiciosHero.webp"); /* tu imagen de fondo */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  animation: moveBackground 30s linear infinite; /* efecto de movimiento */
}

/* Overlay degradado */
.hero-servicios::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,50,180,0.6), rgba(178,34,52,0.6), rgba(255,255,255,0.6));
  z-index: 1;
  pointer-events: none;
}

/* Contenido encima del overlay */
.hero-servicios .hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-content);
  padding: 0 20px;
}

.hero-servicios h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.45);
}
.hero-servicios p {
  font-size: 1.3rem;
  text-shadow: 0 3px 10px rgba(0,0,0,0.35);
}

/* Animación simple del fondo */
@keyframes moveBackground {
  0% { background-position: center top; }
  50% { background-position: center bottom; }
  100% { background-position: center top; }
}

.hero-servicios {
  margin-top: -105px; /* negativo del header */
}

/* ----------------------
  SECCION SERVICIOS
   ---------------------- */
/* Sección Servicios */
.servicios-dos-columnas {
  padding: 80px 20px;
  background: #efefef;
  text-align: center;
}

.servicios-dos-columnas .section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #222;
}

.servicios-dos-columnas .section-subtitle {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 50px;
  font-weight: 600;
}

/* Layout en dos columnas */
.columns {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
}

.columna {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Tarjetas */
.servicio-card {
background: linear-gradient(135deg, rgba(10,30,60,0.9), rgba(93, 22, 35, 0.808), rgb(57, 95, 133));
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.servicio-card h3 {
  margin: 0;
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
color: #F1F0F0;
}

.servicio-card .descripcion {
  margin-top: 10px;
  font-size: 0.95rem;
  display: none;
  line-height: 1.4;
color: #F0F0F0;
  font-weight: bolder;
}

/* ----------------------
  EL CAMINO DEL MIGRANTE
   ---------------------- */
.camino-migrante {
  position: relative;
  padding: 60px 20px;
background: linear-gradient(135deg, #0A2F6B 0%, #0A2F6B 30%, #B22234 65%, #FFFF77 100%);
background-size: 400% 400%; /* necesario para animación */
  text-align: center;
  color: #111; /* asegúrate que contraste con el overlay */
  overflow: hidden;
  animation: gradientMove 12s ease infinite;
  border-radius: 35px;
  margin-top: 50px;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* overlay ligero para contraste del texto */
.camino-migrante::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
  z-index: 1;
}

/* contenido encima del overlay */
.camino-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-content);
  margin: 0 auto;
}

.camino-migrante h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #f1f1f1;
}

.camino-migrante p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f1f1f1;
  text-shadow: 0 0 1.5px #fff;
}

.camino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(400px,1fr));
  gap: 20px;
}

.camino-card img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.camino-card img:hover {
  transform: scale(1.05);
}

/* ----------------------
  CTA FINAL
   ---------------------- */
.cta-servicios {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0A2F6B, #9a1726, #2C3E50);
  background-size: 200% 200%;
  animation: gradientMove 10s ease infinite;
  overflow: hidden;
  margin: auto;
  width: 80%;
  margin-top: 150px;
  margin-bottom: 150px;
  border-radius: 50px;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: url('usaondeando.jpg') center/cover no-repeat;
  opacity: 0.15;
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-servicios h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.cta-servicios p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.btn-cta {
  display: inline-block;
  padding: 14px 28px;
  background: #f0f0f0eb;
  color: #222;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

.btn-cta:hover {
background: linear-gradient(135deg, rgba(10,30,60,0.9), rgba(93, 22, 35, 0.808), rgb(57, 95, 133));
  transform: scale(1.07);
  box-shadow: 0 10px 35px rgba(0,0,0,0.45);
  color: #FFF;
}

/* Animación de fondo */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==== FOOTER ==== */
footer {
  background: #111;
  color: #bbb;
  text-align: center;
  padding: 17px 15px;
  margin-top: 50px;
  font-size: 0.9rem;
  line-height: 0.4;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1700px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-text {
  flex: 1;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: #bbb;
  font-size: 1.4rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-socials a:hover {
  color: #0084ff;
  transform: scale(1.2);
}


/* ==== MEDIA QUERIES RESPONSIVE ==== */

/* Tabletas (768px - 1024px) */
@media (max-width: 1024px) {
  header {
    padding: 15px 25px;
    height: auto;
  }
  
  header .logo {
    padding-left: 0;
    gap: 15px;
  }
  
  header .logo img {
    height: 50px;
  }
  
  header .logo span {
    font-size: 1.8rem;
    margin-left: 10px;
  }
  
  .header-socials {
    margin-left: 50px;
    gap: 15px;
  }
  
  .header-socials a {
    font-size: 1.2rem;
  }
  
  /* Mostrar botón hamburguesa en tablet */
  .hamburger {
    display: flex;
    order: 3;
    margin-left: 100px;
  }
  
  /* Menú tablet */
  header nav {
    order: 4;
    width: 100%;
    display: none;    
    margin-left: 25px;
  }
  
  header nav.active {
    display: block;
  }
  
  header nav ul.menu {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin-top: 10px;
    gap: 0;
  }
  
  header nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  header nav a {
    display: block;
    padding: 15px 20px;
    font-size: 1rem;
    border-radius: 0;
  }
  

  .hero-servicios{
    margin-top: -130px;
  }

  .hero-servicios h1 {
    font-size: 2.4rem;
  }
  
  .hero-servicios p {
    font-size: 1.1rem;
  }
  
  .servicios-dos-columnas .section-title {
    font-size: 2.2rem;
  }
  
  .columns {
    gap: 30px;
  }
  
  .camino-migrante h2 {
    font-size: 2.2rem;
  }
  
  .camino-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
  
  .cta-servicios {
    width: 90%;
    margin-top: 100px;
    margin-bottom: 100px;
    border-radius: 30px;
  }
  
  .cta-servicios h2 {
    font-size: 2.4rem;
  }

    /* Footer responsive */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    line-height: 1.2;
  }
  
  .footer-text p {
    font-size: 0.8rem;
    margin-bottom: 5px;
  }
  
  .footer-socials a {
    font-size: 1.2rem;
  }

}

/* Móviles (hasta 767px) */
@media (max-width: 767px) {
  header {
    padding: 10px 15px;
    flex-wrap: wrap;
    height: auto;
  }
  
  header .logo {
    padding-left: 0;
    gap: 10px;
  }
  
  header .logo img {
    height: 40px;
  }
  
  header .logo span {
    font-size: 1.5rem;
    margin-left: 5px;
  }
  
  /* Mostrar botón hamburguesa en móviles */
  .hamburger {
    display: flex;
    order: 3;
    margin-left: -100px;
  }
  
  /* Ocultar redes sociales del header en móviles */
  .header-socials {
    display: none;
  }
  
  /* Menú móvil */
  header nav {
    order: 4;
    width: 100%;
    display: none;
  }
  
  header nav.active {
    display: block;
  }
  
  header nav ul.menu {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin-top: 10px;
    gap: 0;
  }
  
  header nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  header nav a {
    display: block;
    padding: 15px 20px;
    font-size: 1rem;
    border-radius: 0;
  }
  
  .hero-servicios {
    height: 90vh;
    min-height: 350px;
    margin-top: -150px;
  }
  
  .hero-servicios h1 {
    font-size: 1.8rem;
  }
  
  .hero-servicios p {
    font-size: 0.95rem;
  }
  
  .servicios-dos-columnas {
    padding: 50px 15px;
  }
  
  .servicios-dos-columnas .section-title {
    font-size: 1.8rem;
  }
  
  .servicios-dos-columnas .section-subtitle {
    font-size: 1rem;
  }
  
  .columns {
    flex-direction: column;
    gap: 20px;
  }
  
  .servicio-card {
    padding: 15px;
  }
  
  .servicio-card h3 {
    font-size: 1.1rem;
  }
  
  .servicio-card .descripcion {
    font-size: 0.9rem;
  }
  
  .camino-migrante {
    padding: 40px 15px;
    margin-top: 30px;
    border-radius: 20px;
  }
  
  .camino-migrante h2 {
    font-size: 1.6rem;
  }
  
  .camino-migrante p {
    font-size: 0.9rem;
  }
  
  .camino-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .cta-servicios {
    width: 95%;
    padding: 50px 15px;
    margin-top: 60px;
    margin-bottom: 60px;
    border-radius: 20px;
  }
  
  .cta-servicios h2 {
    font-size: 1.8rem;
  }
  
  .cta-servicios p {
    font-size: 1rem;
  }
  
  .btn-cta {
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  /* Footer responsive */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    line-height: 1.1;
  }
  
  .footer-text p {
    font-size: 0.8rem;
    margin-bottom: 5px;
  }
  
  .footer-socials a {
    font-size: 1.2rem;
  }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
  header .logo span {
    font-size: 1.3rem;
  }
  
  .hero-servicios h1 {
    font-size: 1.5rem;
  }
  
  .hero-servicios p {
    font-size: 0.85rem;
  }
  
  .servicios-dos-columnas .section-title {
    font-size: 1.5rem;
  }
  
  .servicios-dos-columnas .section-subtitle {
    font-size: 0.9rem;
  }
  
  .servicio-card h3 {
    font-size: 1rem;
  }
  
  .servicio-card .descripcion {
    font-size: 0.85rem;
  }
  
  .camino-migrante h2 {
    font-size: 1.4rem;
  }
  
  .camino-migrante p {
    font-size: 0.85rem;
  }
  
  .cta-servicios h2 {
    font-size: 1.6rem;
  }
  
  .cta-servicios p {
    font-size: 0.9rem;
  }
  
  .btn-cta {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  footer{
  padding: 20px 15px;
  }

}

/* Responsive para servicios */
@media (max-width: 900px) {
  .columns {
    flex-direction: column;
  }
}