/* Variables */
:root {
  --blue-dark: #1a1a2e;
  --blue-primary: #2563eb;
  --blue-light: #dbeafe;
  --blue-bg: #eff6ff;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --white: #ffffff;
  --black: #0f0f0f;
  --yellow-badge: #fbbf24;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--blue-dark);
  z-index: 1000;
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.nav a:hover {
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-nav {
  background: var(--blue-primary);
  color: var(--white);
  font-size: 14px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: 140px 0 80px;
  background: var(--blue-bg);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  background: transparent;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title-line1 {
  display: block;
  color: var(--text-dark);
}

.hero-title-line2 {
  display: block;
  color: var(--blue-primary);
}

.hero-desc {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 52px;
  background: var(--text-dark);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.3;
  padding: 8px 16px;
}

.store-badge.apple {
  background: #000;
}

.store-badge-img {
  padding: 0;
  min-width: 140px;
}

.store-badge-img img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.badge-text {
  text-align: left;
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  min-height: 380px;
  flex-wrap: wrap;
  background: transparent;
}

.hero-phones img {
  background: none !important;
}

/* Imágenes mockup sin contenedor tipo móvil: se muestran completas */
.mockup-img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.hero-phone-left,
.hero-phone-right {
  background: transparent;
}

.hero-phone-left {
  max-width: 220px;
  transform: rotate(-6deg) translateY(20px);
  z-index: 1;
  vertical-align: bottom;
}

.hero-phone-right {
  max-width: 220px;
  transform: rotate(6deg) translateY(20px);
  margin-left: -20px;
  z-index: 0;
  vertical-align: bottom;
}

.section-media .mockup-img {
  max-width: 280px;
  max-height: 500px;
}

.section-media-mockup {
  position: relative;
}

.section-media-mockup .phone-badge.top {
  position: absolute;
  top: 15%;
  right: -4px;
}

.phone-mockup {
  width: 220px;
  background: transparent;
  border-radius: 28px;
  padding: 10px;
  position: relative;
}

.phone-mockup.small {
  width: 180px;
  border-radius: 22px;
  padding: 8px;
}

.phone-screen {
  width: 100%;
  aspect-ratio: 9/19;
  border-radius: 20px;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-left {
  transform: rotate(-6deg) translateY(20px);
  z-index: 1;
}

.phone-right {
  transform: rotate(6deg) translateY(20px);
  margin-left: -30px;
  z-index: 0;
}


.phone-badge {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--yellow-badge);
  border-radius: 50%;
  bottom: 15%;
  right: -4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.phone-badge.top {
  bottom: auto;
  top: 15%;
}

.phones-pair {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
}

.phones-pair .phone-mockup.offset {
  margin-bottom: 30px;
}

.phones-pair-single {
  position: relative;
}

.section-phones-img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

/* Partners */
.partners {
  padding: 48px 0;
  background: var(--white);
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partner-logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: #9ca3af;
  filter: grayscale(1);
  opacity: 0.8;
}

.partners-image {
  height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
}

/* Sections common */
.section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.section-bg-wave {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
}

.wave-left-bottom {
  bottom: 0;
  left: 0;
  width: 40%;
  height: 40%;
  background: radial-gradient(ellipse at 0% 100%, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
}

.wave-right-top {
  top: 0;
  right: 0;
  width: 40%;
  height: 40%;
  background: radial-gradient(ellipse at 100% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
}

.wave-right {
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 100% 50%, rgba(219, 234, 254, 0.8) 0%, transparent 60%);
}

.wave-top-right {
  top: 0;
  right: 0;
  width: 45%;
  height: 50%;
  background: radial-gradient(ellipse at 100% 0%, rgba(219, 234, 254, 0.6) 0%, transparent 60%);
}

.section-creativity,
.section-collaborate,
.section-secure,
.section-cta {
  background: linear-gradient(180deg, var(--blue-bg) 0%, var(--white) 100%);
}

.section-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-two-col.reverse {
  direction: rtl;
}

.section-two-col.reverse > * {
  direction: ltr;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.section-title.center {
  text-align: center;
  margin-bottom: 40px;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1rem;
}

.section-content {
  padding: 20px 0;
}

.btn-primary {
  background: var(--blue-primary);
  color: var(--white);
  padding: 12px 28px;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 1rem;
}

.check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--blue-primary);
  border-radius: 50%;
  position: relative;
}

.check::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.section-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* App Features */
.section-features {
  background: var(--white);
}

.section-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--blue-primary);
  margin-bottom: 12px;
}

.feature-cards-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.feature-card-large {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid #e5e7eb;
}

.feature-card-large h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.feature-card-large p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card-image {
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 8px;
  background: #eff6ff;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-meeting {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e5e7eb;
}

.meeting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.badge-new {
  background: var(--blue-primary);
  color: white;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
}

.meeting-list {
  list-style: none;
  color: var(--text-muted);
  font-size: 14px;
}

.meeting-list li {
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.meeting-list li:last-child {
  border-bottom: none;
}

.feature-blocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid #e5e7eb;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.block-icon {
  font-size: 28px;
}

/* Testimonials */
.section-testimonials {
  background: var(--white);
}

.testimonial-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid #e5e7eb;
  text-align: center;
}

.stars {
  color: var(--blue-primary);
  font-size: 1.5rem;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.author-name {
  font-weight: 600;
  color: var(--text-dark);
}

/* Footer */
.footer {
  background: var(--black);
  color: #9ca3af;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-about p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-col a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid #374151;
}

.copyright {
  font-size: 13px;
  color: #6b7280;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 18px;
}

.social-icons a:hover {
  color: var(--white);
}

/* Páginas internas */
.page-content {
  padding: 120px 0 80px;
  min-height: 60vh;
}

.page-content .container {
  max-width: 720px;
}

.page-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.page-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 32px;
  margin-bottom: 12px;
}

.page-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.page-content ul {
  margin: 16px 0;
  padding-left: 24px;
  color: var(--text-muted);
}

.page-content ul li {
  margin-bottom: 8px;
}

.page-content a {
  color: var(--blue-primary);
  text-decoration: none;
}

.page-content a:hover {
  text-decoration: underline;
}

/* Contact page – hero alegre */
.page-contact .contact-hero,
.page-nosotros .contact-hero,
.page-centro-ayuda .contact-hero,
.page-faq .contact-hero,
.page-privacidad .contact-hero,
.page-terminos .contact-hero {
  background: linear-gradient(135deg, var(--blue-bg) 0%, #e0e7ff 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
  padding: 40px 24px;
}
.contact-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 900px !important;
}
.contact-hero-text {
  flex: 1;
}
.page-contact .contact-hero h1,
.page-nosotros .contact-hero h1,
.page-centro-ayuda .contact-hero h1,
.page-faq .contact-hero h1,
.page-privacidad .contact-hero h1,
.page-terminos .contact-hero h1 {
  margin-bottom: 12px;
}
.contact-lead {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0;
}
.contact-hero-image {
  flex-shrink: 0;
  width: 180px;
}
.contact-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 640px) {
  .contact-hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .contact-hero-image {
    width: 140px;
  }
}
.page-contact .contact-details,
.page-nosotros .contact-details,
.page-centro-ayuda .contact-details,
.page-faq .contact-details,
.page-privacidad .contact-details,
.page-terminos .contact-details {
  padding-top: 0;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--blue-primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: #1d4ed8;
}

/* Responsive */
@media (max-width: 900px) {
  .section-two-col {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .section-two-col.reverse {
    direction: ltr;
  }

  .section-media {
    order: -1;
  }

  .feature-cards-large {
    grid-template-columns: 1fr;
  }

  .feature-blocks {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-phones {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .phone-left,
  .phone-right {
    transform: none;
    margin: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-about p {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }
}
