/* ============== RESET / BASE ============== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow-x: hidden; background: #fff; }
/* Inter Regular (400) */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter18pt-Regular.woff2') format('woff2'),
       url('../assets/fonts/Inter18pt-Regular.woff2') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Inter Bold (700) */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter24pt-Bold.woff2') format('woff2'),
       url('../assets/fonts/Inter28pt-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
body { font-family: 'Inter', sans-serif; color: #333; line-height: 1.6; background-color: #F5F5F5; }

/* ============== HEADER / NAV ============== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
  display: flex;
  align-items: center;
}

nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
}

nav .logo {
  width: 84px;
  height: 74px;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

nav .logo:hover {
  transform: scale(1.2);
  filter: brightness(1.1);
}

/* Menú normal */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 250px;
  margin: 0;
  padding: 0;
  padding-right: 40px;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 25px;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none; /* oculto en escritorio */
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #000;
}

/* ============== RESPONSIVE NAV ============== */
@media (max-width: 1024px) {
  .nav-links {
    gap: 60px;
  }
  nav a {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
    height: auto;
    padding: 10px 20px;
  }

  /* mostrar hamburguesa */
  .menu-toggle {
    display: block;
  }

  /* ocultar links por defecto */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 80px; /* debajo del header */
    left: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  /* cuando esté abierto */
  .nav-links.open {
    display: flex;
  }

  nav a {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  nav .logo {
    width: 64px;
    height: 54px;
  }
  nav a {
    font-size: 16px;
  }
}

/* ===== CONTACT PAGE ===== */
.contact-page{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 80px auto 0;  /* deja hueco del header fijo */
  padding: 24px 16px;
  align-items: stretch;
  background: transparent;
}

.contact-left{
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}

.contact-left h1{
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.2;
}

.contact-left p{
  font-size: clamp(14px, 1.6vw, 18px);
  color: #555;
}

.contact-form{ display: grid; gap: 14px; }

.field{ display: grid; gap: 8px; }
.field label{ font-weight: 600; font-size: 14px; color: #333; }
.field input,
.field textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: #333;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field textarea:focus{
  border-color: #771d95;
  box-shadow: 0 0 0 3px rgba(119,29,149,.12);
}

.btn-primary {
  background: #771d95;            /* color morado inicial */
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.05s ease-in-out;
  width: fit-content;
}

/* Hover → verde */
.btn-primary:hover {
  background: #0a800a;           /* verde al pasar el ratón */
}

/* Active → verde más oscuro al hacer click */
.btn-primary:active {
  background: #066406;          /* verde más oscuro */
  transform: translateY(1px);   /* pequeño efecto de presión */
}

.alt-mail{
  font-size: 14px;
  color: #555;
}
.alt-mail a{ color: #771d95; text-decoration: underline; }

/* Foto derecha */
.contact-right{
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
  background: #ddd;
}
.contact-right img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  min-height: 360px; /* asegura presencia si hay poco contenido a la izquierda */
}

/* ===== Responsive ===== */
@media (max-width: 992px){
  .contact-page{
    grid-template-columns: 1fr;   /* apilar en una columna */
    gap: 16px;
    margin-top: 80px;
  }
  .contact-right{ order: -1; }     /* muestra la imagen primero en tablet/móvil; quita si la quieres después */
}

@media (max-width: 480px){
  .contact-left{ padding: 20px; }
  .field input, .field textarea{ padding: 10px 12px; }
}

/* ============== FOOTER ============== */
footer{ background:#222; color:#fff; text-align:center; padding:16px; width:100%; }