/* ================================================================== */
/* RESET PROFESIONAL                                                  */
/* ================================================================== */

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

/* Evita colapsos de imágenes y videos */
img, picture, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Evita que los textos se desborden */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Fuente general */
body {
  font-family: "Inter", system-ui, sans-serif;
  background-color: #ffffff;
  color: #222;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Enlaces */
a {
  text-decoration: none;
  color: inherit;
}

/* Contenedor principal */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ================================================================== */
/* SISTEMA DE ESPACIADOS (NO MÁS COLAPSOS)                           */
/* ================================================================== */

.section {
  padding: 4rem 0; /* espacio vertical */
}

.section-sm {
  padding: 2rem 0;
}

.section-lg {
  padding: 6rem 0;
}

/* ================================================================== */
/* SISTEMA DE GRID QUE NO SE ROMPE                                    */
/* ================================================================== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ================================================================== */
/* TITULOS Y TEXTO                                                     */
/* ================================================================== */

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* ================================================================== */
/* BOTONES UNIVERSALES                                                 */
/* ================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background:#f28a19;
  color:#fff;
}

.btn-primary:hover {
  background:#c96c10;
}

/* ================================================================== */
/* SECCIÓN QUE NUNCA COLAPSA (IDEAL PARA SLIDER O HERO)               */
/* ================================================================== */
.hero {
  width: 100%;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  position: relative;
  background-size: cover;
  background-position: center;
}

/* ================================================================== */
/* UTILIDADES IMPORTANTES                                              */
/* ================================================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Separadores */
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ================================================================== */
/* MOBILE / TABLET FIXES (iPad PRO 11 incluido)                        */
/* ================================================================== */

@media (max-width: 1024px) {
  .section { padding: 3rem 0; }
  .hero { min-height: 50vh; }
}

@media (max-width: 768px) {
  .section { padding: 2.5rem 0; }
  .hero { min-height: 45vh; }
}

/* ================================================================== */
/* SISTEMA DE "SAFE PADDING" QUE EVITA SOLAPES CON NAVBAR              */
/* ================================================================== */

/* Si una sección debe empezar debajo de la navbar */
.safe-top {
  padding-top: var(--safe-top, 160px);
}

/* JS ajustará dinámicamente --safe-top después */