/* ===== CSS Variables ===== */
:root {
  --color-primary: #ff4f5e;
  --color-primary-dark: #e63e4d;
  --color-primary-light: #ff7a85;
  --color-secondary: #2f4858;
  --color-secondary-light: #3d5a6c;
  --color-accent: #ffd93d;
  --color-accent-dark: #f5c800;

  --color-text: #1a1a2e;
  --color-text-light: #64748b;
  --color-text-muted: #94a3b8;

  --color-bg: #ffffff;
  --color-bg-alt: #fafbfc;
  --color-bg-dark: #f1f5f9;

  --font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    sans-serif;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ===== Utilities ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  color: white;
  box-shadow: 0 4px 14px rgba(255, 79, 94, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 79, 94, 0.5);
}

.btn-accent {
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-dark) 100%
  );
  color: var(--color-secondary);
  box-shadow: 0 4px 14px rgba(255, 217, 61, 0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 217, 61, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.btn-outline:hover {
  background: var(--color-secondary);
  color: white;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--color-secondary);
}

.logo-icon {
  font-size: 28px;
}

.logo-accent {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-secondary);
}

.nav-links a:hover {
  color: var(--color-primary);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-secondary);
  transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #fff 0%, #f8f9ff 50%, #fff5f5 100%);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(255, 79, 94, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 217, 61, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(47, 72, 88, 0.03) 0%,
      transparent 40%
    );
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 79, 94, 0.1);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-secondary);
  margin-bottom: 24px;
}

.hero-description {
  font-size: 18px;
  color: var(--color-text-light);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 450px;
}

.hero-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background: linear-gradient(
    135deg,
    rgba(255, 79, 94, 0.1) 0%,
    rgba(255, 217, 61, 0.1) 100%
  );
  border-radius: 50%;
  z-index: 0;
}

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-weight: 600;
  color: var(--color-secondary);
  z-index: 1;
  transition: var(--transition);
}

.hero-card:hover {
  transform: translateY(-5px);
}

.card-icon {
  font-size: 24px;
}

.card-1 {
  top: 20%;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.card-2 {
  top: 45%;
  right: 5%;
  animation: float 6s ease-in-out infinite 1s;
}

.card-3 {
  bottom: 15%;
  left: 20%;
  animation: float 6s ease-in-out infinite 2s;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: auto;
}

/* ===== Section Styles ===== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 79, 94, 0.1);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--color-text-light);
}

/* ===== About Section ===== */
.about {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.about-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.about-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.about-card p {
  color: var(--color-text-light);
  font-size: 15px;
}

/* ===== Products Section ===== */
.products {
  padding: 100px 0;
  background: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid #eef2f6;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.product-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.product-card.featured {
  background: linear-gradient(
    135deg,
    var(--color-secondary) 0%,
    var(--color-secondary-light) 100%
  );
  color: white;
  transform: scale(1.05);
}

.product-card.featured.animate-in {
  transform: scale(1.05);
}

.product-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.product-card.featured h3,
.product-card.featured p {
  color: white;
}

.product-card.featured .product-features li {
  color: rgba(255, 255, 255, 0.9);
}

.product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.product-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 28px;
}

.product-icon-access {
  background: rgba(255, 79, 94, 0.1);
}

.product-icon-event {
  background: rgba(255, 217, 61, 0.2);
}

.product-icon-heart {
  background: rgba(147, 51, 234, 0.1);
}

.product-badge {
  padding: 6px 12px;
  background: rgba(255, 79, 94, 0.1);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.product-badge.badge-new {
  background: var(--color-accent);
  color: var(--color-secondary);
}

.product-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.product-card > p {
  color: var(--color-text-light);
  margin-bottom: 24px;
  font-size: 15px;
}

.product-features {
  margin-bottom: 24px;
}

.product-features li {
  padding: 8px 0;
  color: var(--color-text-light);
  font-size: 14px;
}

/* ===== Snapp Web Section ===== */
#snapp-web {
  padding: 100px 0;
  background-color: #fafbfc; /* Un gris muy ligero para resaltar las tarjetas blancas */
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.project-card-visual {
  text-decoration: none;
  color: inherit;
  display: block;
  perspective: 1000px; /* Para efectos 3D si quisieras */
}

.project-container {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #f0f0f0;
}

/* Contenedor de la imagen (Screenshot) */
.project-image-wrapper {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* Importante: muestra el inicio (hero) de la web */
  transition: transform 0.6s ease;
}

/* Información de la tarjeta */
.project-info {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-info h4 {
  margin: 0;
  font-size: 1.15rem;
  color: #1a202c;
  font-weight: 700;
}

.project-tag {
  font-size: 0.75rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 5px 12px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Efectos Hover */
.project-card-visual:hover .project-container {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-card-visual:hover .project-image-wrapper img {
  transform: scale(1.08);
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .projects-gallery {
    grid-template-columns: 1fr; /* Una columna en móvil */
    padding: 0 10px;
  }
}

/* ===== Contact Section ===== */
.contact {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff5f5 100%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  opacity: 0;
  transform: translateY(30px);
}

.contact-wrapper.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.contact-info h2 {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--color-text-light);
  margin-bottom: 32px;
  font-size: 17px;
}

.contact-details {
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 24px;
}

.contact-item strong {
  display: block;
  color: var(--color-secondary);
  font-weight: 600;
}

.contact-item span {
  color: var(--color-text-light);
  font-size: 15px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-md);
  color: var(--color-secondary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-3px);
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-family);
  font-size: 15px;
  border: 2px solid #eef2f6;
  border-radius: var(--radius-md);
  transition: var(--transition);
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 79, 94, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-secondary);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* ===== Animations ===== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s ease forwards;
}

.animate-slide-up-delay {
  animation: slideUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.animate-slide-up-delay-2 {
  animation: slideUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-description {
    margin: 0 auto 32px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .product-card.featured {
    transform: none;
  }

  .product-card.featured.animate-in,
  .product-card.featured:hover {
    transform: translateY(-8px);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    box-shadow: var(--shadow-xl);
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: flex;
    z-index: 1001;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 36px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-lg {
    width: 100%;
  }

  .contact-form {
    padding: 24px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
