
/*  
  Estilos desarrollados por @Nudaro  
  Fecha: [30/09/2025]  
  Proyecto: Mundo Inmigrante 
  Contacto: studioyfocus@gmail.com
*/


/* =========================
  ESTILOS GENERALES
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* ----------------------
  HEADER - CONTACTO
---------------------- */
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; /* tamaño consistente */
  width: auto;
  display: block;
}

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;
}

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);
}

.h1-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

/* 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;
  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 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.4s ease, color 0.4s ease, transform 150ms ease, box-shadow 0.3s 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.15);
}


/* =========================
  HERO EMOTIVO
========================= */
.contacto-hero {
    position: relative;
    height: 85vh;
    min-height: 400px;
    background: url('contacto-hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    margin-top: 105px; /* compensar header */
    color: #fff;
    overflow: hidden;
}

/* Overlay degradado para dar emoción y legibilidad */
.contacto-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(26, 91, 132, 0.361));
    z-index: 1;
}

/* Contenido sobre el overlay */
.contacto-hero .contacto-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.contacto-hero span {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    font-weight: 700;
}

.contacto-hero p {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 30px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.35);
}

/* Botón CTA dentro del Hero */
.contacto-hero .btn-hero {
    background: linear-gradient(90deg, #B22234, #FF4500);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}
.contacto-hero .btn-hero:hover {
    background: linear-gradient(90deg, #FF6347, #B22234);
    transform: translateY(-2px);
}


/* =========================
  FORMULARIO
========================= */
.contacto-formulario {
    background: #fff;
    padding: 60px 5%;
    text-align: center;
}

.contacto-formulario h2 {
    font-size: 2rem;
    margin-bottom: 25px;
}

.contacto-formulario form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacto-formulario input,
.contacto-formulario select,
.contacto-formulario textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.contacto-formulario input:focus,
.contacto-formulario select:focus,
.contacto-formulario textarea:focus {
    border: 1px solid #444;
    outline: none;
    font-family: "Segoe UI", Arial, sans-serif;

}

.contacto-formulario .btn-enviar {
    background: linear-gradient(90deg, #B22234, #FF4500);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
}

.contacto-formulario .btn-enviar:hover {
    transform: translateY(-2px);
    background: linear-gradient(90deg, #FF6347, #B22234);
    text-shadow: 0 0 2px #fff;
}

.contacto-formulario .nota {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* =========================
CONTACTO DIRECTO
========================= */
.contacto-directo {
    background: #ededed;
    padding: 50px 5%;
    text-align: center;
}

.contacto-directo h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contacto-directo .contacto-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contacto-directo a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contacto-directo a i {
    margin-right: 8px;
    color: #d63333;
}

.contacto-directo a:hover {
    color: #d63333;
}

/* =========================
REDES SOCIALES
========================= */
.contacto-redes {
    padding: 50px 5%;
    text-align: center;
    background: #fff;
}

.contacto-redes h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contacto-redes p {
    margin-bottom: 20px;
    color: #555;
}

.contacto-redes .social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.contacto-redes .social-icons a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contacto-redes .social-icons a i {
    margin-right: 8px;
    font-size: 1.3rem;
}

.contacto-redes .social-icons a:hover {
    color: #d63333;
    transform: translateY(-3px);
}

/* =========================
  FAQ
========================= */
.contacto-faq {
    background: #e9e9e9;
    padding: 60px 5%;
}

.contacto-faq h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

.faq-item {
    max-width: 800px;
    margin: 15px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: left;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #d63333;
}


/* =========================
CTA FINAL - EFECTO LÁMPARA DE LAVA
========================= */
.contacto-cta-final {
    position: relative;
    text-align: center;
    padding: 50px 5%;
    color: #fff;
    overflow: hidden;
    border-radius: 25px;
}

/* Imagen de fondo */
.contacto-cta-final::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('famfeliz.jpg') center/cover no-repeat;
    z-index: 0;
}

/* Degradado animado tipo lámpara de lava */
.contacto-cta-final::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.53), rgba(0, 116, 217, 0.41), rgba(127, 219, 255, 0.37));
    background-size: 300% 300%;
    animation: lavaMoveCTA 12s ease infinite;
    z-index: 1;
}

/* Overlay para dar contraste al texto */
.contacto-cta-final .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.60); /* oscurece lo justo */
    z-index: 2;
}

/* Contenido encima de todo */
.contacto-cta-final h2,
.contacto-cta-final p,
.contacto-cta-final .btn-cta {
    position: relative;
    z-index: 3;
}

.contacto-cta-final h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.contacto-cta-final p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.contacto-cta-final .btn-cta {
    display: inline-block;
    background: linear-gradient(90deg, #B22234, #FF4500);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.2s ease, background 0.3s ease, text-shadow 0.3s ease;
}

.contacto-cta-final .btn-cta:hover {
    transform: translateY(-2px);
    background: linear-gradient(90deg, #FF6347, #B22234);
    text-shadow: 0 0 4px #fff;
}

/* Animación del degradado */
@keyframes lavaMoveCTA {
    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: 25px 15px;
  margin-top: 50px;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1500px;
  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);
}


/* =========================
  BOTÓN WHATSAPP FLOTANTE
========================= */
.btn-whatsapp {
    position: fixed;
    bottom: 20px;
    right:20px;
    background: #25d366;
    color: #fff;
    font-size: 1.8rem;
    padding: 15px 26px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: transform 0.3s ease;
    z-index: 999;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
}

/* ==== MEDIA QUERIES RESPONSIVE ==== */

/*Portatil L (1440px)*/
@media (max-width: 1440px) {

  /* Footer responsive */
  .footer-content {
    max-width: 1100px;
  }
}

/* Tabletas (768px - 1024px) */
@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 */
  .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;
  }
  
  .contacto-hero{
    margin-top: 80px;
    height: 88vh;
  }

  .contacto-hero span {
    font-size: 2.4rem;
  }
  
  .contacto-hero p {
    font-size: 1.1rem;
  }
  
  .contacto-formulario {
    padding: 50px 4%;
  }
  
  .contacto-formulario h2 {
    font-size: 1.8rem;
  }
  
  .contacto-directo .contacto-info {
    gap: 20px;
  }
  
  .contacto-redes .social-icons {
    gap: 20px;
  }
  
  .contacto-faq {
    padding: 50px 4%;
  }
  
  .contacto-faq h2 {
    font-size: 1.8rem;
  }
  
  .contacto-cta-final h2 {
    font-size: 1.8rem;
  }

    /* 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;
  }
  
  .contacto-hero {
    height: 90vh;
    min-height: 350px;
    margin-top: 60px;
  }
  
  .contacto-hero span {
    font-size: 1.8rem;
  }
  
  .contacto-hero p {
    font-size: 1rem;
  }
  
  .contacto-hero .btn-hero {
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .contacto-formulario {
    padding: 40px 15px;
  }
  
  .contacto-formulario h2 {
    font-size: 1.6rem;
  }
  
  .contacto-formulario form {
    max-width: 100%;
  }
  
  .contacto-formulario input,
  .contacto-formulario select,
  .contacto-formulario textarea {
    padding: 10px;
    font-size: 0.9rem;
  }
  
  .contacto-formulario .btn-enviar {
    padding: 12px;
    font-size: 1rem;
  }
  
  .contacto-directo {
    padding: 40px 15px;
  }
  
  .contacto-directo h2 {
    font-size: 1.6rem;
  }
  
  .contacto-directo .contacto-info {
    flex-direction: column;
    gap: 15px;
  }
  
  .contacto-directo a {
    font-size: 1rem;
  }
  
  .contacto-redes {
    padding: 40px 15px;
  }
  
  .contacto-redes h2 {
    font-size: 1.6rem;
  }
  
  .contacto-redes .social-icons {
    flex-direction: column;
    gap: 15px;
  }
  
  .contacto-redes .social-icons a {
    font-size: 1rem;
  }
  
  .contacto-faq {
    padding: 40px 15px;
  }
  
  .contacto-faq h2 {
    font-size: 1.6rem;
  }
  
  .faq-item {
    padding: 15px;
  }
  
  .faq-item h3 {
    font-size: 1.1rem;
  }
  
  .faq-item p {
    font-size: 0.9rem;
  }
  
  .contacto-cta-final {
    padding: 40px 15px;
    border-radius: 15px;
  }
  
  .contacto-cta-final h2 {
    font-size: 1.6rem;
  }
  
  .contacto-cta-final p {
    font-size: 1rem;
  }
  
  .contacto-cta-final .btn-cta {
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .btn-whatsapp {
    font-size: 1.5rem;
    padding: 12px 20px;
    bottom: 25px;
    right: 8px;
  }
  
  /* 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;
  }
  
  .contacto-hero span {
    font-size: 1.5rem;
  }
  
  .contacto-hero p {
    font-size: 0.9rem;
  }
  
  .contacto-hero .btn-hero {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .contacto-formulario h2 {
    font-size: 1.4rem;
  }
  
  .contacto-formulario input,
  .contacto-formulario select,
  .contacto-formulario textarea {
    padding: 8px;
    font-size: 0.85rem;
  }
  
  .contacto-formulario .btn-enviar {
    padding: 10px;
    font-size: 0.9rem;
  }
  
  .contacto-directo h2,
  .contacto-redes h2,
  .contacto-faq h2 {
    font-size: 1.4rem;
  }
  
  .contacto-directo a,
  .contacto-redes .social-icons a {
    font-size: 0.9rem;
  }
  
  .faq-item h3 {
    font-size: 1rem;
  }
  
  .faq-item p {
    font-size: 0.85rem;
  }
  
  .contacto-cta-final h2 {
    font-size: 1.4rem;
  }
  
  .contacto-cta-final p {
    font-size: 0.9rem;
  }
  
  .contacto-cta-final .btn-cta {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}