
/*  
  Estilos desarrollados por @Nudaro  
  Fecha: [30/09/2025]  
  Proyecto: Mundo Inmigrante 
  Contacto: studioyfocus@gmail.com
*/


/* ==== RESET ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  color: #333;
  background: #fff;
}

/* ==== HEADER ==== */
header {
  background: #7a0404;
  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.95;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: background 250ms ease, box-shadow 250ms ease, transform 200ms ease;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 25px;
}

header .logo img {
  border-radius: 10px;
  height: 65px;
  width: auto;
}

header .logo h1 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-left: 15px;
  color: #fff;
  line-height: 1;
  transition: text-shadow 0.3s ease, outline 0.3s ease;
}

.h1-link{
  color: #fff;
  text-decoration: none;
}

header .logo h1:hover{
  outline: 2px solid rgba(255,255,255,0.85);
  border-radius: 15px;
  padding: 8px;
  text-shadow: 0 0 6px rgba(255,255,255,0.4);
}

/* 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);
}

header nav ul.menu {
  list-style: none;
  display: flex;
  gap: 30px;
  font-size: 1.3rem;
  padding-right: 40px;
}

header nav ul li {
  position: relative;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 8px;
  transition: all 0.5s ease;
}

/* Redes sociales en el header */
.header-socials {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex: 1;
  margin-left: 100px;
}

.header-socials a {
  color: #fff;
  font-size: 1.4rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.header-socials a:hover {
  color: #0084ff;
  transform: scale(1.2);
}

header nav a:hover {
  color: #0f0cc8;
  background: #fff;
  font-weight: bolder;
}

/* ==== CARRUSEL ==== */
.carousel {
  position: relative;
  height: calc(100vh - 80px);
  margin-top: 104px;
  overflow: hidden;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.carousel .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 8, 26, 0.6);
}

.carousel-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  max-width: 700px;
  padding: 20px;
}

.carousel-text span {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.carousel-text p {
  font-size: 1.2rem;
  text-shadow: 0 0 10px #fff;
}

/* ==== CONTENIDO PRINCIPAL ==== */
main {
  padding: 50px 20px;
  text-align: center;
}

/* ==== SECCIONES PRINCIPALES ==== */
.intro-p{
  margin-bottom: 20px;
}

.content-section {
  margin: 80px auto;
  padding: 40px 20px;
  max-width: 1100px;
  text-align: center;
}

.content-section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #000678;
}

.intro{
  margin-top: 30px;
}

/* ==== BOTONES ==== */
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #B22234;
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #002868;
  transform: scale(1.05);
}

.btn-cta {
  padding: 15px 35px;
  font-size: 1.2rem;
}

/* ==== SERVICIOS ==== */
.img-section_services {
  margin-bottom: 5px;
  background: 
    linear-gradient(rgba(2, 8, 26, 0.65), rgba(2, 8, 26, 0.65)), 
    url("banderausagt.webp");
  background-size: cover;
  background-position: center;
  width: 100%;
  border-radius: 15px;
  height: 500px;
  display: flex;
}

.servicios {
  margin: auto;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  padding: 60px 20px;
  width: 100%;
  max-width: 1200px;
}

#h2-services{
  color: #fffFFF;
  text-shadow: 0 0 3.5px #000;
}

.servicios::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.servicios h2,
.servicios .servicios-grid,
.servicios .btn {
  position: relative;
  z-index: 2;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.servicio {
  background: rgba(248, 248, 248, 0.9);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  color: #222;
}

.servicio:hover {
  transform: translateY(-5px);
}

/* ==== PROCESO ==== */
.img-section_process {
  background: linear-gradient(rgba(2, 8, 26, 0.65), rgba(2, 8, 26, 0.65)), 
    url("procesos2.jpg");
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 500px;
  border-radius: 15px;
  display: flex;
}

.proceso {
  margin: auto;
  color: #fff;
  padding: 60px 20px;
  width: 100%;
  max-width: 1200px;
  text-align: center;
}

#h2-process{
  color: #FFF;
  text-shadow: 0 0 3.5px #000;
}

.proceso::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;  
  z-index: 1;
}

.proceso h2,
.proceso .pasos {
  position: relative;
  z-index: 2;
}

.pasos {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin-top: 30px;
}

.paso {
  background: rgba(255,255,255,0.9);
  border: 2px solid #000000;
  border-radius: 12px;
  padding: 20px;
  width: 230px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #222;
}

.paso span {
  display: inline-block;
  font-size: 2rem;
  font-weight: bold;
  color: #B22234;
  margin-bottom: 10px;
}

.paso:hover {
  transform: scale(1.05);
}

/* ==== TESTIMONIOS ==== */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.testimonio {
  background: #f8f8f8;
  padding: 25px;
  border-radius: 12px;
  font-style: italic;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.08);
}

.testimonio h4 {
  margin-top: 15px;
  font-weight: bold;
  color: #002868;
}

.testimonios{
  margin-bottom: 50px;
}

/*=====Contadores=====*/
.contador-seccion {
  background: #eeeeee;
  padding: 60px 5%;
  text-align: center;
}

.contador-seccion h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #262743;
}

.contadores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.contador-item {
  flex: 1 1 200px;
  max-width: 220px;
}

.contador-item i {
  font-size: 2.5rem;
  color: #B22234;
  margin-bottom: 10px;
}

.contador-item .numero {
  font-size: 2.2rem;
  font-weight: bold;
  display: block;
  color: #333;
}

/* ==== CTA ==== */
.cta {
  background: linear-gradient(to right, #B22234, #002868);
  color: #fff;
  padding: 60px 20px;
  border-radius: 12px;
  margin-top: 130px;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #fff;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

/* ==== FOOTER ==== */
footer {
  background: #111;
  color: #bbb;
  text-align: center;
  padding: 25px 15px;
  margin-top: 50px;
  font-size: 0.9rem;
}

.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 - 1023px) */
@media (max-width: 1024px) {
  header {
    padding: 15px 25px;
  }
  
  header .logo {
    padding-left: 0;
    gap: 15px;
  }
  
  header .logo img {
    height: 50px;
  }
  
  header .logo h1 {
    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 tablets */
  .hamburgert {
    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;
  }

  .carousel {
    margin-top: 80px;
    height: 90vh;
  }
  
  .carousel-text span {
    font-size: 2.5rem;
  }
  
  .carousel-text p {
    font-size: 1.1rem;
  }
  
  .content-section {
    max-width: 95%;
    padding: 30px 15px;
    margin: 60px auto;
  }
  
  .content-section h2 {
    font-size: 2rem;
  }
  
  .servicios-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }
  
  .img-section_process {
    height: auto;
  }

  .pasos {
    gap: 20px;
  }
  
  .paso {
    width: 200px;
    padding: 15px;
  }

  .testimonios-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contador-seccion h2 {
    font-size: 1.8rem;
  }
  
  .contadores {
    gap: 30px;
  }
  
  .cta h2 {
    font-size: 2.2rem;
  }
  
  .cta p {
    font-size: 1.1rem;
  }

    /* Footer responsive */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .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 h1 {
    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;
  }
  
  .carousel {
    margin-top: 60px;
    height: 90vh;
  }
  
  .carousel-text {
    max-width: 90%;
    padding: 15px;
  }
  
  .carousel-text span {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  
  .carousel-text p {
    font-size: 1rem;
  }
  
  main {
    padding: 30px 10px;
  }
  
  .content-section {
    margin: 40px auto;
    padding: 20px 10px;
  }
  
  .content-section h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }
  
  .intro-p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .btn-cta {
    padding: 12px 25px;
    font-size: 1rem;
  }
  
  .img-section_services,
  .img-section_process {
    height: auto;
    min-height: 400px;
    margin-bottom: 20px;
    border-radius: 10px;
  }
  
  .servicios,
  .proceso {
    padding: 30px 15px;
  }
  
  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .servicio {
    padding: 20px;
  }
  
  .servicio h3 {
    font-size: 1.1rem;
  }
  
  .pasos {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .paso {
    width: 90%;
    max-width: 300px;
    padding: 15px;
  }
  
  .paso span {
    font-size: 1.5rem;
  }
  
  .paso h3 {
    font-size: 1.1rem;
  }
  
  .paso p {
    font-size: 0.9rem;
  }
  
  .testimonios-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .testimonio {
    padding: 20px;
  }
  
  .testimonio p {
    font-size: 0.9rem;
  }
  
  .contador-seccion {
    padding: 40px 15px;
  }
  
  .contador-seccion h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  
  .contadores {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }
  
  .contador-item {
    max-width: 180px;
  }
  
  .contador-item i {
    font-size: 2rem;
  }
  
  .contador-item .numero {
    font-size: 1.8rem;
  }
  
  .cta {
    padding: 40px 15px;
    margin-top: 60px;
  }
  
  .cta h2 {
    font-size: 1.8rem;
  }
  
  .cta p {
    font-size: 1rem;
  }
  
  /* Footer responsive */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .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 h1 {
    font-size: 1.3rem;
  }
  
  .carousel-text span {
    font-size: 1.8rem;
  }
  
  .carousel-text p {
    font-size: 1rem;
    margin-top: 15px;
  }
  
  .content-section h2 {
    font-size: 1.4rem;
  }
  
  .intro-p {
    font-size: 0.85rem;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .servicio h3,
  .paso h3 {
    font-size: 1rem;
  }
  
  .servicio p,
  .paso p,
  .testimonio p {
    font-size: 0.85rem;
  }
  
  .contador-seccion h2 {
    font-size: 1.3rem;
  }
  
  .contador-item i {
    font-size: 1.8rem;
  }
  
  .contador-item .numero {
    font-size: 1.6rem;
  }
  
  .cta h2 {
    font-size: 1.6rem;
  }
  
  .cta p {
    font-size: 0.9rem;
  }
}