* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Calibri, sans-serif;
  background-color: #fff;
  color: #222;
  line-height: 1.6;
}

/* ---------- VIDEO PRINCIPAL ---------- */
.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 600px;
  margin: 120px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}
.video-container video {
  width: 130%;
  height: 130%;
  object-fit: contain;
  display: block;
  background-color: #fff;
  backface-visibility: hidden;
  transform: translateZ(0);
  /* TEST SAFARI: desactiva la máscara */
  -webkit-mask-image: none;
  mask-image: none;
}
.video-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, white 0%, transparent 20%, transparent 80%, white 100%);
  z-index: 2;
}

/* ---------- TEXTO ---------- */
.content {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 60px;
  text-align: justify;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.content.visible { opacity: 1; transform: scale(1); }
.content p { color: #333; }

/* ---------- VIDEOS DE DRIVE ---------- */
.drive-videos {
  max-width: 1000px;
  margin: 60px auto 100px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  background: #fff;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.card.visible { opacity: 1; transform: scale(1); }
.card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}
.card .caption {
  padding: 14px 16px;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
  text-align: center;
  background: #f9f9f9;
}

/* Thumb para cargar iframes on-demand */
.drive-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  overflow: hidden;
}
.drive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 24px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 12px;
  padding: 6px 10px;
}

/* ---------- VIDEO “ABOUT” ---------- */
.about-video {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 0 auto;
  overflow: hidden;
}
.about-video video {
  width: 100%;
  display: block;
  object-fit: cover;
  background-color: #000;
}

/* ---------- SECCIÓN NOSOTROS ---------- */
.about-section {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 100px auto;
  padding: 0 20px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.about-section.visible { opacity: 1; transform: scale(1); }

.about-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.about-content.visible { opacity: 1; transform: scale(1); }

.about-text { padding: 40px; }
.about-text h2 {
  margin: 0 0 10px 0;
  font-size: 1.6rem;
  line-height: 1.2;
  color: #111;
}
.about-text p { color: #333; font-size: 1.05rem; }

.about-image {
  position: relative;
  z-index: 3;
  padding: 40px;
  background: rgba(0,0,0,0);
  margin-top: -40px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.about-image::before {
  content: "";
  position: absolute;
  top: -40px; left: 0;
  width: 100%; height: 60px;
  background: linear-gradient(white 40%, transparent 100%);
  z-index: 2;
}
.about-image img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.15); }

/* ---------- SECCIÓN EL PROCESO ---------- */
.process-section {
  max-width: 850px;
  margin: 80px auto 120px auto;
  padding: 0 20px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.process-section.visible { opacity: 1; transform: scale(1); }

.process-section h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #111;
  margin-bottom: 10px;
  position: relative;
  display: block;
}
.process-section h2::after {
  content: "";
  display: block;
  width: 180px;
  height: 3px;
  background: rgba(65,179,181,1);
  margin: 0 auto;
  border-radius: 3px;
}
.process-section > p {
  text-align: center;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 40px;
}
.process-block { margin-bottom: 60px; }
.process-block h3 {
  color: rgba(65,179,181,1);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.process-block p { font-size: 1rem; color: #333; margin-bottom: 20px; }

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.columns.visible { opacity: 1; transform: scale(1); }

.column {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.column h4 {
  color: #111;
  margin-top: 0;
  font-size: 1.1rem;
  border-bottom: 2px solid rgba(65,179,181,0.5);
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.column ul { list-style: none; padding: 0; margin: 0; }
.column ul li { margin-bottom: 6px; font-size: 0.95rem; color: #333; }

/* ---------- BOTONES ---------- */
.buttons-heading {
  width: 100%;
  text-align: center;
  color: #333;
  font-size: 1.05rem;
  font-weight: 100;
  margin-bottom: 8px;
}
.buttons-section {
  width: 100%;
  background: #f9f9f9;
  padding: 30px 0;
  display: flex;
  justify-content: center;
}
.buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}
.buttons-container0 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.buttons-container0 button,
.buttons-container button {
  background: rgba(65, 179, 181, 1);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
  font-family: "Helvetica Neue", Calibri, sans-serif;
}
.buttons-container0 button:hover,
.buttons-container button:hover {
  background: rgba(78, 214, 217, 1);
  transform: translateY(-2px);
}

/* ---------- FOOTER ---------- */
.footer-section {
  width: 100%;
  background: #222;
  padding: 30px 20px;
  margin: 0;
}
.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
}
.footer-text p {
  font-size: 1rem;
  color: #fff;
  margin: 0;
  line-height: 1.6;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .about-content { grid-template-columns: 1fr; }
  .about-text, .about-image { padding: 30px 20px; }
}
@media (max-width: 768px) {
  .video-container { margin: 60px auto; padding: 20px 0; }
  .drive-videos { gap: 40px; }
  .card .caption { font-size: 0.9rem; }
  .footer-text p { font-size: 0.95rem; }
}

.special-button {
  background: #ffcc00;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.special-button:hover {
  background: #ffe066;
  transform: scale(1.05);
}

/* ====== CUADRADO FIJO CON BLUR ARRIBA ====== */
/* ====== CUADRADO FIJO CON BLUR ARRIBA ====== */
.site-header.square {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 86px;
  height: 86px;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.95); /* <- FONDO SÓLIDO */
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 10px;
}

@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .site-header.square {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
  }


@supports (-webkit-touch-callout: none) {
  /* Safari / iOS WebKit */
  .site-header.square,
  .site-nav.flyout {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255,255,255,0.95) !important;
  }
}
  .site-nav.flyout {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.site-header.square .brand {
  grid-column: 1 / -1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
}

.site-header.square .brand-text {
  position:absolute;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height:1px;
  width:1px;
  overflow:hidden;
  white-space:nowrap;
}

.site-header.square .nav-toggle {
  grid-column: 1 / -1;
  width: 100%;
  padding: 8px 0;
  font-size: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: transform .12s ease, background .2s ease;
}
.site-header.square .nav-toggle:hover {
  transform: translateY(-1px);
}

/* ====== MENÚ FLYOUT BAJO EL CUADRADO ====== */
.site-nav.flyout {
  position: fixed;
  top: calc(16px + 86px + 10px); /* debajo del cuadrado */
  left: 16px;
  right: 16px;
  z-index: 1100;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  width: auto;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.14);
}

.site-nav.flyout.open { display:flex; }

.site-nav.flyout a {
  display:block;
  text-decoration:none;
  color:#111;
  padding:10px 12px;
  border-radius:10px;
  transition: background .2s ease, transform .1s ease, color .2s ease;
}
.site-nav.flyout a:hover {
  background:#f1f5f9;
  transform: translateY(-1px);
}

/* ACTIVO: VERDE */
.site-nav.flyout a.active {
  background: rgba(65,179,181,1);
  color:#fff;
  font-weight:600;
}
.site-nav.flyout a.active:hover {
  background: rgba(78,214,217,1);
}

/* Oculta cualquier header anterior de ancho completo */
.site-header:not(.square) {
  display:none;
}

/* Ajuste responsivo móvil */
@media (max-width: 480px) {
  .site-header.square {
    width: 72px;
    height: 72px;
    top: 10px;
    left: 10px;
    padding: 8px;
  }
  .site-nav.flyout {
    top: calc(10px + 72px + 10px);
    left: 8px;
    right: 8px;
    border-radius: 12px;
  }
  .site-nav.flyout a {
    font-size: 0.95rem;
    padding: 12px 10px;
  }
}
.page-wrap{
  max-width: 1000px;
  margin: 0 auto;          /* centra horizontal */
  padding: 24px 20px 80px; /* respiro lateral y abajo */
}

/* Hero: centra título y texto y lo separa del cuadrado fijo */
.hero-kk {
  text-align: center;
  margin-top: 10px;
  padding: 30px 20px 20px;
}
.hero-kk h1{
  font-size: 2.2rem;
  margin: 0 0 10px;
  color: #111;
}
.hero-kk p{
  max-width: 720px;
  margin: 0 auto;
  color: #333;
  font-size: 1.1rem;
}

/* Rejilla de contacto centrada y con tope de ancho */
/* ---- REJILLA DE CONTACTO ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr; /* una sola columna */
  gap: 40px;
  max-width: 800px;
  margin: 20px auto 80px;
  padding: 0 20px;
}

/* Cada bloque de contacto */
/* ===== FORMULARIO DE CONTACTO ===== */
.contact-form {
  display: flex;
  flex-direction: column;   /* cada campo debajo del anterior */
  gap: 14px;                /* espacio entre elementos */
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 28px 24px;
  max-width: 600px;
  margin: 0 auto;           /* centrado */
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #111;
}

.contact-form label {
  font-weight: 500;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Efecto al enfocar un campo */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(65,179,181,1);
  box-shadow: 0 0 4px rgba(65,179,181,0.3);
  outline: none;
}

.contact-form button {
  background: rgba(65,179,181,1);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 12px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: inherit;
  margin-top: 10px;
}

.contact-form button:hover {
  background: rgba(78,214,217,1);
  transform: translateY(-2px);
}

.contact-form .form-note {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  margin-top: 8px;
}
/* Ajuste responsive (por si en el futuro quieres volver a dos columnas) */
@media (min-width: 1000px) {
  .contact-grid.two-columns {
    grid-template-columns: 1fr 1fr;
  }
}

/* Asegura que el flyout es flotante y NO ocupa espacio en el flujo */
.site-nav.flyout{
  position: fixed;
  top: calc(16px + 86px + 10px);
  left: 16px;
  z-index: 1100;
  display: none;           /* se abre con .open desde JS */
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  width: min(92vw, 320px);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.14);
}
.site-nav.flyout.open{ display: flex; }

.site-nav.flyout a{
  display:block;
  text-decoration:none;
  color:#111;
  padding:10px 12px;
  border-radius:10px;
  transition: background .2s ease, transform .1s ease, color .2s ease;
}
.site-nav.flyout a:hover{ background:#f1f5f9; transform: translateY(-1px); }
.site-nav.flyout a.active{ background: rgba(65,179,181,1); color:#fff; font-weight:600; }
.site-nav.flyout a.active:hover{ background: rgba(78,214,217,1); }

/* ===== BOTONES DE CONTACTO ===== */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

/* Botones principales */
.contact-actions .btn-primary,
.contact-actions .btn-outline {
  display: inline-block;
  text-decoration: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 20px;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Botón principal (ej. "Abrir correo") */
.contact-actions .btn-primary {
  background: rgba(65,179,181,1);
  color: #fff;
  border: none;
}

.contact-actions .btn-primary:hover {
  background: rgba(78,214,217,1);
  transform: translateY(-2px);
}

/* Botones contorno (Instagram, YouTube) */
.contact-actions .btn-outline {
  background: transparent;
  border: 2px solid rgba(65,179,181,1);
  color: rgba(65,179,181,1);
}

.contact-actions .btn-outline:hover {
  background: rgba(65,179,181,0.08);
  transform: translateY(-2px);
}

/* En pantallas pequeñas: botones 100% ancho */
@media (max-width: 600px) {
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-actions .btn-primary,
  .contact-actions .btn-outline {
    width: 100%;
    text-align: center;
  }
}

.process-section > h3,
.process-section .process-block h3 {
  text-align: left;
  margin-top: 40px; /* opcional, si quieres mantener el margen de antes */
}

main h3 {
  text-align: center;       /* Centra el título “También estamos en:” */
  margin-top: 40px;

}

