@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.has-page-chrome {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

/* Header */
.site-header {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--color-text);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px !important;
  background: var(--color-primary);
  color: white !important;
  border-radius: var(--radius-md);
  font-weight: 600 !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--color-primary-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-white);
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

body.nav-menu-open {
  overflow: hidden;
}

/* Modal contacto WhatsApp */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.contact-modal-overlay[hidden] {
  display: none;
}

.contact-modal {
  width: 100%;
  max-width: 400px;
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.contact-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.contact-modal-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
}

.contact-modal-close {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  padding: 4px 8px;
}

.contact-modal-form .form-group {
  margin-bottom: 16px;
}

body.contact-modal-open {
  overflow: hidden;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary,
.btn-teal {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover,
.btn-teal:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary-light);
}

.btn-full {
  width: 100%;
}

/* Formularios compartidos */
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #f8f9fb;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.form-group input[readonly] {
  background: #f0f2f5;
  color: var(--color-text-muted);
}

.form-group input[readonly]#cuota-diaria {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  font-weight: 700;
  border-color: rgba(180, 83, 9, 0.15);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-text);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: var(--shadow-lg);
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  width: 56px;
  height: 56px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* Footer expandido */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding: 48px 24px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-logo span {
  color: rgba(255, 255, 255, 0.9);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-cuit {
  font-size: 0.8125rem !important;
  opacity: 0.6;
}

.footer-links h4,
.footer-contact h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: white;
}

.footer-contact p {
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.footer-contact a:not(.footer-contact-link) {
  font-size: 0.875rem;
  margin-bottom: 8px;
  display: block;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-contact-link {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 8px;
  font-size: 0.875rem;
}

.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  min-width: 16px;
  max-width: 16px;
  min-height: 16px;
  max-height: 16px;
  flex: 0 0 16px;
  overflow: hidden;
  line-height: 0;
}

.footer-contact-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.footer-contact-label {
  line-height: 1.4;
  white-space: nowrap;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8125rem;
}

.footer-legal {
  margin-top: 6px;
  opacity: 0.5;
  font-size: 0.75rem !important;
}

/* Modal legal (términos / privacidad) */
body.legal-modal-open {
  overflow: hidden;
}

.legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.legal-modal-overlay[hidden] {
  display: none;
}

.legal-modal {
  width: 100%;
  max-width: 640px;
  max-height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.legal-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.legal-modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.legal-modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.legal-modal-close:hover {
  color: var(--color-text);
  background: var(--color-border);
}

.legal-modal-body {
  padding: 8px 24px 24px;
  overflow-y: auto;
}

.legal-modal-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.legal-modal-section:last-child {
  border-bottom: none;
}

.legal-modal-section h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.legal-modal-section p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.legal-modal-section ul {
  margin: 10px 0 0 1.25rem;
  padding: 0;
  list-style: disc;
}

.legal-modal-section li {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-modal-section li:last-child {
  margin-bottom: 0;
}

/* FAQ */
.faq-section {
  padding: 64px 0;
  background: var(--color-bg-white);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: min(80vh, 600px);
  overflow-y: auto;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Confianza */
.trust-section {
  padding: 48px 0 64px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.trust-stat {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.trust-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.trust-stat span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.trust-legal {
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.trust-legal strong {
  color: var(--color-text);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  body {
    padding-top: var(--header-offset, var(--header-height));
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 101;
  }

  .site-header nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 20px;
    z-index: 99;
  }

  .site-header:not(.nav-open) nav {
    display: none;
  }

  .site-header.nav-open nav {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 8px;
    font-size: 1rem;
  }

  .nav-links a.nav-cta {
    text-align: center;
    margin-top: 8px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .site-header {
    height: auto;
    min-height: var(--header-height);
    padding: 10px 0;
  }

  .site-header .container {
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
  }

  .site-header .logo {
    font-size: clamp(1.125rem, 4.2vw, 1.375rem);
    flex-shrink: 1;
    min-width: 0;
    line-height: 1.2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 16px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .trust-stat {
    padding: 16px 12px;
  }

  .trust-stat strong {
    font-size: 1.375rem;
  }

  .trust-legal {
    padding: 16px;
    font-size: 0.75rem;
  }

  .faq-section {
    padding: 40px 0;
  }

  .faq-question {
    font-size: 0.9375rem;
    padding: 16px 0;
    gap: 12px;
  }

  .whatsapp-float {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    width: 52px;
    height: 52px;
  }

  .toast {
    left: 16px;
    right: 16px;
    transform: translateX(0) translateY(20px);
    max-width: calc(100% - 32px);
  }

  .toast.visible {
    transform: translateX(0) translateY(0);
  }
}

/* Footer: iconos de contacto siempre en tamaño fijo (PC y móvil) */
.site-footer .footer-contact .footer-contact-link {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: fit-content !important;
}

.site-footer .footer-contact-icon,
.site-footer .footer-contact-icon svg,
.site-footer .footer-contact-link > svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  min-width: 16px;
  min-height: 16px;
  flex: 0 0 16px;
}

