@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #008f39;
  --whatsapp-color: #25d366;
  --whatsapp-hover: #128c7e;
  --bg-color: #f8fbfa;
  --surface-color: #ffffff;
  --text-main: #2d3748;
  --text-muted: #718096;
  --border-color: #e2e8f0;
  --focus-ring: rgba(37, 211, 102, 0.4);
  --error-color: #e53e3e;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header & Language Selector */
header {
  display: flex;
  justify-content: space-between; /* Cambiamos 'center' por 'space-between' para separarlos */
  align-items: center;
  padding: 1rem 1.2rem; /* Achicamos apenitas el padding lateral para ganar espacio */
  background-color: var(--surface-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: auto; /* Ajuste para texto */
  font-size: 1.2rem; /* Letra un poco más chica para que entre perfecto en móviles */
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  white-space: nowrap; /* Evita que el logo se parta en dos renglones */
}

.lang-selector {
  display: flex;
  gap: 0.5rem;
  /* Eliminamos el position: absolute y el right: 1.5rem */
}

.lang-link {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.lang-link:hover, .lang-link.active {
  background-color: var(--primary-color);
  color: white;
}

/* Main Content Wrapper */
main {
  max-width: 500px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.view-prices-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 143, 57, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.view-prices-btn:active {
  transform: scale(0.98);
}

/* Form Styles */
.reservation-card {
  background: var(--surface-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.reservation-card h1 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-main);
  font-weight: 700;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #fafafa;
  color: var(--text-main);
  transition: all 0.2s ease;
  appearance: none;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--whatsapp-color);
  background-color: var(--surface-color);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.phone-group {
  display: flex;
  gap: 0.5rem;
}

.phone-group .country-code { width: 30%; }
.phone-group .ddd { width: 30%; }
.phone-group .celular { width: 40%; }

.alert-box {
  background-color: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: #856404;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 8px;
  align-items: center;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--whatsapp-color);
  cursor: pointer;
}

.submit-btn {
  width: 100%;
  background-color: var(--whatsapp-color);
  color: white;
  border: none;
  padding: 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  margin-top: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

.submit-btn:active {
  transform: scale(0.98);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface-color);
  width: 95%;
  max-width: 450px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  padding: 2rem;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Scrollbar customizations para el Modal */
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s;
  z-index: 5;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-header {
  margin-bottom: 1rem;
  text-align: center;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.modal-body {
  font-size: 0.85rem;
  color: var(--text-main);
}

.info-list {
  list-style: none;
  margin-bottom: 1.25rem;
  background: #f8fbfa;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.info-list li {
  margin-bottom: 0.5rem;
}

.info-list li:last-child {
  margin-bottom: 0;
}

.info-blocks p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.reserve-title {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  margin: 1.5rem 0 0.5rem;
  color: var(--whatsapp-color);
}

.payment-info {
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.warning-box {
  background-color: #fff3cd;
  border-left-color: #ffeeba;
  color: #856404;
  margin-bottom: 0;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

main {
  animation: fadeIn 0.5s ease-out;
}
