/* ======================================================
   VARIABLES GENERALES
====================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --naranja: #FF8C42;
  --azul: #1E90FF;
  --beige: #FFF8F0;
  --gris: #444;
  --blanco: #fff;
  --fuente: "Poppins", sans-serif;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  background: var(--beige);
  color: var(--gris);
  scroll-behavior: smooth;
}

/* Para escritorio, mantener una sola línea */
@media (min-width: 1024px) {
  .hero-content h1 {
    margin-bottom: 5px;
    white-space: nowrap;
  }
}


/* ======================================================
   NAVBAR
====================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

/* Contenedor principal */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo y texto */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 60px;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
  background: linear-gradient(45deg, var(--naranja), var(--azul));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.logo-text span {
  font-weight: 700;
  color: var(--naranja);
  -webkit-text-fill-color: var(--naranja);
}

/* Enlaces */
.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  transition: transform 0.4s ease;
}

.nav-links a {
  text-decoration: none;
  color: var(--gris);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--azul);
}

/* Botón menú hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}

.nav-toggle span {
  height: 3px;
  width: 100%;
  background: var(--gris);
  border-radius: 2px;
  transition: 0.3s;
}

/* ======================================================
   MÓVIL
====================================================== */
@media (max-width: 900px) {
  .nav-container {
    padding: 12px 5%;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    background: white;
    flex-direction: column;
    width: 220px;
    transform: translateX(100%);
    padding: 25px 0;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .nav-links a {
    margin: 12px 0;
    color: var(--gris);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  /* animación del icono */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  .logo-text {
    font-size: 1rem;
  }
  .logo-img {
    height: 45px;
  }
}


/* ======================================================
   CONTACTO (VERSIÓN FINAL ELEGANTE)
====================================================== */
.contacto {
  position: relative;
  padding: 120px 5%;
  background: #f9f9f9; /* Fondo limpio sin degradado */
  overflow: hidden;
}

.contacto-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--gris);
}

/* ===================== */
/* INFORMACIÓN IZQUIERDA */
/* ===================== */
.contacto-info {
  flex: 1;
  min-width: 300px;
  background: white;
  border-radius: 20px;
  padding: 40px 35px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.contacto-info h2 {
  color: var(--azul);
  font-size: 2rem;
  margin-bottom: 15px;
}

.contacto-info p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* ===================== */
/* INFORMACIÓN IZQUIERDA (ICONOS MINIMALISTAS) */
/* ===================== */
.contacto-lista {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.contacto-lista li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: var(--gris);
  transition: color 0.3s ease;
}

.contacto-lista i {
  color: var(--azul);
  font-size: 1.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contacto-lista li:hover i {
  color: var(--naranja);
  transform: translateY(-3px);
}

.contacto-lista a {
  color: var(--azul);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.contacto-lista a:hover {
  color: var(--naranja);
  text-decoration: underline;
}


/* ===================== */
/* FORMULARIO DERECHA */
/* ===================== */
.contacto-formulario {
  flex: 1;
  min-width: 340px;
  background: white;
  border-radius: 20px;
  padding: 40px 35px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.contacto-formulario h3 {
  color: var(--azul);
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.6rem;
  font-weight: 700;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group i {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: var(--azul);
  font-size: 1rem;
}

.contacto-formulario input,
.contacto-formulario textarea {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.contacto-formulario input:focus,
.contacto-formulario textarea:focus {
  border-color: var(--naranja);
  box-shadow: 0 0 0 2px rgba(255,140,66,0.3);
}

.btn-enviar {
  width: 100%;
  background: var(--naranja);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.btn-enviar:hover {
  background: var(--azul);
  transform: translateY(-3px);
}

/* ===================== */
/* RESPONSIVO */
/* ===================== */
@media (max-width: 900px) {
  .contacto-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .contacto-info,
  .contacto-formulario {
    width: 100%;
    padding: 30px 25px;
  }

  .contacto-info h2 {
    font-size: 1.7rem;
  }

  .contacto-formulario h3 {
    font-size: 1.4rem;
  }
}

/* ======================================================
   SUBRAYADO ANIMADO EN EL TÍTULO
====================================================== */
.contacto-info h2 {
  position: relative;
  display: inline-block;
  color: var(--azul);
  font-size: 2rem;
  margin-bottom: 20px;
  overflow: hidden;
}

.contacto-info h2::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--azul), var(--naranja));
  transition: width 0.6s ease-in-out;
}

.contacto-info h2.reveal-line::after {
  width: 100%;
}

/* ======================================================
   CORRECCIÓN DE MÁRGENES Y DESBORDAMIENTO EN MÓVIL
====================================================== */
.contacto {
  overflow-x: hidden; /* evita que algo se salga horizontalmente */
}

.contacto-wrapper {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.contacto-info,
.contacto-formulario {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .contacto-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }

  .contacto-info,
  .contacto-formulario {
    width: 100%;
    max-width: 600px;
    padding: 30px 25px;
    margin: 0 auto;
  }

  .contacto-info h2 {
    font-size: 1.7rem;
    text-align: center;
  }

  .contacto-info p {
    text-align: center;
  }

  .contacto-lista {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }

  .contacto-lista li {
    justify-content: flex-start;
  }

  .contacto-formulario {
    padding: 30px 25px;
  }
}



/* ======================================================
   FOOTER (OPTIMIZADO Y COMPACTO)
====================================================== */
.footer {
  background: #0e1a2b;
  color: white;
  text-align: center;
  padding: 50px 5% 25px;
  font-family: inherit;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 25px;
}

/* Logo y slogan */
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.footer-logo img {
  width: 80px;
  height: auto;
  margin-bottom: 5px;
}

.footer-logo .slogan {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  font-style: italic;
}

/* Contacto */
.footer-contacto {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-contacto h4 {
  color: var(--naranja);
  font-size: 1rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-contacto .direccion {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
  line-height: 1.4;
  max-width: 300px;
}

.footer-contacto a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  transition: color 0.3s;
}

.footer-contacto a i {
  color: var(--naranja);
  font-size: 1rem;
}

.footer-contacto a:hover {
  color: var(--naranja);
}

/* Parte inferior */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 15px;
}

.footer-bottom p {
  margin: 3px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

.footer-bottom .creditos a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom .creditos a:hover {
  color: var(--naranja);
}

/* Responsivo */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-logo,
  .footer-contacto {
    align-items: center;
    text-align: center;
  }

  .footer-contacto .direccion {
    max-width: 90%;
  }

  .footer {
    padding: 40px 20px 20px;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }
}

/* ===================== */
/* RESPONSIVO */
/* ===================== */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    align-items: center;
  }

  .footer-contacto {
    align-items: center;
  }

  .footer-contacto a {
    justify-content: center;
  }

  .footer {
    padding: 50px 20px 25px;
  }
}
