/* VARIABLES */
:root {
  --orange: #e9692c;
  --light-orange: #f7954e;
  --white: #fff;
  --bg: #faf9f7;
  --text: #333;
  --footer-h: 64px; /* altura del footer fija */
}

/* RESETEO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  min-height: 100vh;
  /* espacio inferior para que el footer fijo no tape contenido */
  padding-bottom: var(--footer-h);
}

/* HEADER */
.main-header {
  background: linear-gradient(90deg, var(--orange), var(--light-orange));
  color: var(--white);
  padding: 0.8rem 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(90%, 1100px);
  margin: 0 auto;
}

.logo {
  text-decoration: none;
  color: var(--white);
}

.logo h1 {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
}

/* CONTENIDO */
.contact-container {
  padding: 1.5rem 0 3rem 0; /* le damos más abajo para footer */
  text-align: center;
}

.contact-title {
  font-size: 2rem;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* CUADRO DE TEXTO */
.intro-card {
  background: white;
  width: min(90%, 700px);
  margin: 0 auto 1.8rem auto;
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  font-size: 1.03rem;
  line-height: 1.45;
}

/* FORMULARIO: más ancho y campos alineados */
.contact-card {
  background: white;
  width: min(90%, 820px); /* un poco más ancho */
  margin: 0 auto;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  position: relative;
  overflow: visible;
}

/* fila con dos campos */
.row {
  display: flex;
  gap: 1rem;
}

/* cada campo ocupa la mitad */
.field {
  flex: 1;
  text-align: left;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
  color: #444;
}

input, textarea {
  width: 100%;
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1rem;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

/* textarea más "gorda" */
textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.4;
}

/* botón centrado y ancho mayor */
.contact-button {
  margin-top: 1.6rem;
  background: var(--orange);
  color: white;
  border: none;
  padding: 0.95rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  width: 260px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.contact-button:hover {
  background: var(--light-orange);
  transform: translateY(-3px);
  transition: transform .18s ease;
}

/* ANIMACIÓN DEL SOBRE (ahora con SVG visible) */
.envelope {
  width: 120px;
  height: 90px;
  margin: 12px auto 0 auto;
  position: absolute;
  left: 0; right: 0;
  top: -60px; /* aparece sobre la tarjeta */
  opacity: 0;
  transform-origin: center;
  pointer-events: none;
  z-index: 50;
}

/* por defecto oculto */
.hidden {
  display: none;
}

/* animación compuesta: cierre del flap + subida */
.fly {
  display: block;
  opacity: 1;
  animation: envelopeRise 1.8s ease forwards;
}

/* animar el flap (rotación sobre su eje) */
.fly #flap {
  animation: flapClose 0.45s ease 0.15s forwards;
}

/* pequeño rebote/tilt durante el vuelo */
.fly svg {
  animation: tilt 1.8s ease forwards;
}

/* animaciones keyframes */
@keyframes flapClose {
  0% { transform-origin: 60px 22px; transform: rotateX(0deg); }
  100% { transform-origin: 60px 22px; transform: rotateX(180deg); }
}

@keyframes envelopeRise {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  40% { transform: translateY(-70px) scale(1.02); }
  100% { transform: translateY(-240px) scale(0.8); opacity: 0; }
}

@keyframes tilt {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-6deg); }
  60% { transform: rotate(6deg); }
  100% { transform: rotate(12deg); }
}

/* FOOTER: fijo abajo de la ventana */
.main-footer {
  background: var(--orange);
  color: white;
  text-align: center;
  padding: 0.9rem 1rem;
  height: var(--footer-h);
  line-height: calc(var(--footer-h) - 8px);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.06);
}

/* RESPONSIVE */
@media (max-width: 820px) {
  .row { flex-direction: column; }
  .contact-card { width: min(94%, 700px); padding: 1.2rem; }
  .contact-button { width: 100%; }
  .envelope { top: -50px; }
}

.contacto{ padding-left: 170px; 
}

#contactate {
  padding-top: 20px;
}
