:root {
  /* Paleta */
  --color-primary-brown: hsl(25, 45%, 30%);
  --color-accent-sandy: hsl(40, 70%, 85%);
  --color-text-dark: hsl(25, 20%, 20%);
  --color-background-light: hsl(40, 20%, 97%);
  --color-button-cta: hsl(30, 70%, 50%);
  --color-button-hover: hsl(30, 80%, 40%);
  --color-border-light: hsl(40, 10%, 88%);
  --color-miami-aqua: hsl(190, 60%, 55%);
  --color-white: #fff;
  --color-black: #000;

  /* Tipograf¨Şa */
  --font-base: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;

  /* Sombra y radios */
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 999px;

  /* Velocidades */
  --speed-fast: 150ms;
  --speed: 250ms;
}

/* ===== Reset razonable + antialias ===== */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html:focus-within { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  font-family: var(--font-base);
  line-height: 1.6;
  color: var(--color-text-dark);
  background: var(--color-background-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

/* Accesibilidad focus */
:focus-visible {
  outline: 3px solid hsla(190, 60%, 55%, 0.6);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Reducir movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Layout ===== */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

header.header {
  background: var(--color-primary-brown);
  color: var(--color-white);
  padding: 15px 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.header .logo {
  font-size: 1.8rem;
  font-weight: 700;
}

section {
  padding: 80px 0;
  text-align: center;
}
section:nth-of-type(even) { background: var(--color-white); }
section.showcase h3 { margin-bottom: 14px; }

h2, h3 {
  color: var(--color-primary-brown);
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.2;
}
h2 { font-size: clamp(2rem, 2vw + 1.5rem, 3rem); }
h3 { font-size: clamp(1.5rem, 1.2vw + 1rem, 2.2rem); }
p  { margin-bottom: 15px; font-size: 1.05rem; }

/* ===== Hero ===== */
.hero {
  /* usa ruta relativa por si el archivo est¨˘ junto a index.html */
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('arigabtrips_hero_background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: clamp(80px, 10vw, 120px) 0;
  color: var(--color-white);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}
.hero h2 {
  font-size: clamp(2.2rem, 3.5vw + 1rem, 3.8rem);
  color: var(--color-white);
  margin-bottom: 25px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}
.hero p {
  font-size: clamp(1.05rem, 0.7vw + 0.9rem, 1.4rem);
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* ===== Ofertas / Features ===== */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
  text-align: left;
}
.offer-item {
  background: var(--color-background-light);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 210px;
  justify-content: center;
  transition: transform var(--speed) ease, box-shadow var(--speed) ease;
}
.offer-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.offer-item .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--color-miami-aqua);
}

/* ===== Bot¨Žn CTA ===== */
.cta-button {
  display: inline-block;
  background: var(--color-button-cta);
  color: var(--color-white);
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1.05rem;
  transition: background var(--speed-fast) ease, transform var(--speed-fast) ease, box-shadow var(--speed-fast) ease;
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
}
.cta-button:hover { background: var(--color-button-hover); transform: translateY(-2px); }
.cta-button:active { transform: translateY(0); }
.cta-button[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ===== FAQ ===== */
.stats h3, .content-style h3, .faq h3 { margin-bottom: 10px; }
.faq details {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 14px auto;
  max-width: 800px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  text-align: left;
}
.faq summary {
  font-weight: 600;
  color: var(--color-primary-brown);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.faq p { margin: 10px 0 0 0; }

/* ===== Cards Grid (Airbnb, Restaurantes, Negocios) ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 26px;
  align-items: stretch;
}
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--speed) ease, box-shadow var(--speed) ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card img {
  width: 100%;
  /* Evita saltos de layout: reserva proporci¨Žn aunque tarde en cargar */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Fallback si el navegador no soporta aspect-ratio */
@supports not (aspect-ratio: 4 / 3) {
  .card img { height: 180px; }
}

.card-body { padding: 18px; text-align: left; }
.card-title {
  color: var(--color-primary-brown);
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 1.05rem;
}
.card-location { color: var(--color-text-dark); font-size: 0.98rem; }
.card-link { display: block; text-decoration: none; color: inherit; }

/* ===== Bot¨Žn "Ver m¨˘s" en las cards ===== */
.card-actions {
  margin-top: 10px;
  display: flex;
  justify-content: center; /* <-- centrado horizontal */
}

.btn-more {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--color-button-cta);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: background var(--speed-fast) ease, transform var(--speed-fast) ease, box-shadow var(--speed-fast) ease;
}
.btn-more:hover {
  background: var(--color-button-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ===== Contacto ===== */
.contact {
  background: var(--color-accent-sandy);
  color: var(--color-text-dark);
  padding: 100px 0;
}
.contact h3 { font-size: clamp(1.8rem, 1.6vw + 1rem, 3rem); color: var(--color-primary-brown); }
.contact-intro { font-size: 1.15rem; margin-bottom: 30px; }
.contact-email a {
  color: var(--color-button-cta);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color var(--speed-fast) ease;
}
.contact-email a:hover { color: var(--color-miami-aqua); }

.contact-form {
  max-width: 650px;
  margin: 40px auto 0 auto;
  text-align: left;
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; margin-bottom: 8px; font-weight: 600;
  color: var(--color-primary-brown); font-size: 1rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: 1rem;
  color: var(--color-text-dark);
  background: var(--color-background-light);
  transition: border-color var(--speed-fast) ease, box-shadow var(--speed-fast) ease;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-miami-aqua);
  outline: none;
  box-shadow: 0 0 0 4px hsla(190, 60%, 55%, 0.25);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-form .cta-button {
  width: auto; border: none; cursor: pointer; font-size: 1.05rem;
  padding: 12px 26px; margin-top: 10px;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-primary-brown);
  color: var(--color-white);
  text-align: center;
  padding: 32px 0;
  font-size: 0.95rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

/* ===== Breakpoints ===== */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-item { margin: 0 auto; max-width: 520px; }
  .contact-form { padding: 28px; }
}
@media (max-width: 480px) {
  .header .logo { font-size: 1.6rem; }
  .cta-button { padding: 12px 22px; font-size: 1rem; }
  .contact-form { padding: 22px; }
}
