:root {
  --color-primary: #141e31;
  --color-secondary: #2b619f;
  --color-white: #ffffff;
  --color-text: #686868;
  --color-bg: #fcfdfd;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.7;
}

/* =========================
   SECTION LABELS (small)
========================= */

small {
  display: block;

  margin-bottom: 0.4rem;
  /* antes era demasiado */
  padding-left:3rem;

  font-size: 0.8rem;
  letter-spacing: 0.15rem;

  opacity: 0.7;
}

/* =========================
   HEADINGS
========================= */

h1,
h2,
h3 {
  font-family: "Baskerville Old Face", serif;
  font-weight: 700;
  letter-spacing: 0.1rem;
}

h2,
h3 {
  color: var(--color-primary);
  line-height: 1.2;
  margin-top: 0;
  /* evita huecos raros dentro de bloques */
}

/* =========================
   H2
========================= */

h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 1rem;
  width: fit-content;
}

/* =========================
   H3
========================= */

h3 {
  font-size: clamp(1.5rem, 2.9vw, 2.4rem);
  margin-bottom: 0.8rem;
  width: fit-content;
}

h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem; /* espacio entre la línea y el texto */
}

h2::before {
  content: "";
  display: block;
  width: 2rem;   /* longitud de la línea */
  height: 2px;   /* grosor */
  background-color: var(--color-primary);
  flex-shrink: 0;
}

.section-contact h2:before{
  background-color: var(--color-white) !important;
}

p {
  padding-bottom: 15px;
}

a {
  text-decoration: none;
  color: inherit;
}

.section img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.section img:hover,
.collage-section img:hover {
  transform: scale(1.08);
}

.btn-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn {
  background: transparent;
  padding: 10px 0;
  border: 0;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
  transition: color 0.3s ease;
  cursor: pointer;
  text-align: center;
  align-self: center;
  width: auto;
}

.hero .btn,
.hero .btn-arrow {
  color: var(--color-white);
}

/* La flecha reacciona desplazándose horizontalmente */
.btn-arrow {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover .btn-arrow {
  transform: translateX(8px);
}

/* =========================
       HEADER
    ========================== */

header {
  width: 100%;
  /*position: sticky;*/

  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: 0 2px 2px rgba(2, 6, 23, 0.06);
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  max-width: 300px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  transition: 0.3s;
  color: var(--color-primary);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-secondary);
}

/* Hamburguer */

.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 5px;
  transition: 0.3s;
}

/* =========================
       RESPONSIVE
    ========================== */

@media (max-width: 900px) {

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--color-white);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.3s;
  }

  .menu-toggle:checked~.nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* =========================
       HERO
    ========================== */

.hero {
  padding: 0px 30px;
  background: linear-gradient(to bottom, #4A6A8F 0%, #1E3A5C 40%, #0E2238 100%);
}

.hero-container {
  max-width: 1200px;
  /*background: linear-gradient(180deg, #9db5cf 0%, #647d98 15%, #214374 40%, #0f2443 100%);*/
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 auto;
  padding: 0;
}

.hero-image {
  flex-shrink: 0;
  /* Evita que la imagen se encoja */
}

.hero-image img {
  width: 600px;
  max-width: 100%;
  /* Para responsive */
  height: auto;
  display: block;
}

.hero-box {
  flex: 1;
  align-self: stretch;
  /* Iguala la altura al contenedor */
  color: var(--color-white);
  padding: 50px 0px;
  position: relative;
  overflow: hidden;
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.hero-box-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  /*background: radial-gradient(circle, rgba(0, 255, 100, 0.4) 0%, rgba(0, 255, 100, 0.2) 30%, rgba(0, 255, 100, 0.05) 60%, transparent 70%);*/
  /*background: radial-gradient(circle, rgba(37, 188, 97, 0.7) 0%, rgba(61, 162, 101, 0.4) 30%, rgba(50, 116, 76, 0.15) 60%, transparent 70%);*/
  background: radial-gradient(circle,
      rgba(90, 130, 170, 0.55) 0%,
      rgba(50, 85, 125, 0.35) 30%,
      rgba(34, 61, 99, 0.15) 60%,
      transparent 75%);

  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 1;
}

.hero-box:hover .hero-box-glow {
  opacity: 1;
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    /* Cambia a vertical */
    text-align: center;
  }

  .hero-image img {
    width: 100%;
    max-width: 600px;
  }
}

/* =========================
       SECTION
    ========================== */
.section {
  width: 100%;
  padding: 80px 30px;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;

  grid-template-columns: repeat(auto-fit,
      minmax(280px, 1fr));
  align-items: center;
  gap: 50px;
}

/* IMÁGENES */
.image-column img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}



/* ==========================================================================
   SECCIÓN DE CONTACTO
   ========================================================================== */

.section-contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #4A6A8F 0%, #1E3A5C 40%, #0E2238 100%);
  color: var(--color-white);
}

.section-contact h2,
.section-contact h3 {
  color: var(--color-white);
}

/* Distribución asimétrica tipo revista */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr !important;
  gap: 80px !important;
  align-items: end !important;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 50px !important;
  }
}

/* Detalles Editoriales (Columna Izquierda) */

.contact-header {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  /* Hace que el contenedor solo mida lo que mide el texto */
  margin-bottom: 35px;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

@media (max-width: 576px) {
  .contact-details {
    grid-template-columns: 1fr;
  }
}

.contact-details h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  letter-spacing: 0.05rem;
}

.contact-details p {
  font-size: 15px;
  padding-bottom: 0;
}

/* Integración del Mapa de Google de Forma Elegante */
.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20, 30, 49, 0.05);
  border: 1px solid rgba(20, 30, 49, 0.08);
  /* Un truco de experto: baja la saturación para que el mapa no desentone con tus colores corporativos */
  filter: grayscale(0.3) contrast(1.05);
  transition: filter 0.5s ease;
}

.map-wrapper:hover {
  filter: grayscale(0);
}

.map-wrapper iframe {
  display: block;
}

/* Tarjeta del Formulario (Columna Derecha) */
.form-card {
  background: var(--color-white);
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(20, 30, 49, 0.06);
  border: 1px solid rgba(20, 30, 49, 0.03);
}

@media (max-width: 576px) {
  .form-card {
    padding: 30px 20px;
  }
}

/* Input Minimalista y Efecto Floating Label */
.mf-form-group {
  position: relative;
  margin-bottom: 32px;
  /* Espacio limpio entre campos */
}

.mf-input,
.mf-textarea {
  width: 100%;
  border: none !important;
  border-bottom: 1.5px solid #dcdcdc !important;
  background: transparent !important;
  padding: 12px 4px !important;
  font-size: 16px;
  color: var(--color-primary);
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.mf-textarea {
  resize: none;
}

/* Línea de realce animada en el focus */
.input-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: var(--color-secondary);
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mf-input:focus~.input-highlight,
.mf-textarea:focus~.input-highlight {
  width: 100%;
}

/* Posicionamiento inicial del Label */
.mf-label {
  position: absolute;
  top: 12px;
  left: 4px;
  color: #999;
  font-size: 15px;
  font-weight: 500;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), font-size 0.3s ease, color 0.3s ease;
  transform-origin: left top;
}

/* Magia CSS: Si el input está en focus o no está vacío, el label flota hacia arriba */
.mf-input:focus~.mf-label,
.mf-input:not(:placeholder-shown)~.mf-label,
.mf-textarea:focus~.mf-label,
.mf-textarea:not(:placeholder-shown)~.mf-label {
  transform: translateY(-24px) scale(0.82);
  color: var(--color-secondary);
  font-weight: 600;
  letter-spacing: 0.05rem;
}

/* Ajuste específico para quitar el outline por defecto */
.mf-input:focus,
.mf-textarea:focus {
  outline: none !important;
}

/* Corrección de Estilo Premium para el Autocompletado del Navegador */
.mf-input:-webkit-autofill,
.mf-input:-webkit-autofill:hover,
.mf-input:-webkit-autofill:focus,
.mf-textarea:-webkit-autofill,
.mf-textarea:-webkit-autofill:hover,
.mf-textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-primary) !important;
  /* Mantiene tu color de texto */
  /* Este truco sustituye el fondo del navegador por una sombra interna del color de tu fondo actual */
  box-shadow: 0 0 0px 1000px #fcfdfd inset !important;
  transition: background-color 5000s ease-in-out 0s;
}




footer {
  height: 150px;
  background: var(--color-primary);
  color: var(--color-white);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  flex-direction: column;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.footer-links a {
  transition: color 0.3s ease;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-copyright p {
  margin: 0;
}

/* ==================== SCROLL TOP ==================== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
  display: none;
  z-index: 999;
}

.scroll-top.show {
  display: block;
}