/* Tofy Dely - Estilos principales */

/* Paleta de colores basada en el tema primaryMainTheme */
:root {
  --background: #fafdff;
  --foreground: #192734;
  --primary: #007bbf;
  --primary-foreground: #ffffff;
  --secondary: #46a5dc;
  --secondary-foreground: #ffffff;
  --third: #17a2b8;
  --third-background: #17a2b81a;
  --quaternary: #0d6efd;
  --quinary: #6c757d;
  --background-secondary: #f0f8ff;
  --background-third: #f8fcff;
  --primary-letter: #192734;
  --secondary-letter: #6c757d;
  --third-letter: #868e96;
  --gray-letter: #495057;
  --white-letter: #ffffff;
  --discount-letter: #dc3545;
  --input-border: #cee6ff;
  --circular-color: #f8fcff;
  --input-filled: #f0f8ff;
  --success: #198754;
  --rectangle-container: #19273499;
  --box-shadow: #1927341a;
  --hover-highlight: #a1a1aa33;
  --middle-ground: #6c757d;
  --button-secondary: #D8D9DA;
  --technical-important-color: #0d6efd;
  --border-box: #cee6ff;
  
  /* Colores adicionales para mejor contraste */
  --footer-text: #a0aec0;
  --footer-link-hover: #e2e8f0;
}

/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Sora", sans-serif;
  line-height: 1.6;
  color: var(--primary-letter);
  background: var(--background);
  overflow-x: hidden;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(250, 253, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(250, 253, 255, 0.98);
  box-shadow: 0 2px 20px var(--box-shadow);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-letter);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--third) 50%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.shape:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 80%;
  left: 30%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  color: var(--white-letter);
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: slideUp 1s ease 0.5s forwards;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: slideUp 1s ease 0.7s forwards;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--white-letter);
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  opacity: 0;
  animation: slideUp 1s ease 0.9s forwards;
  box-shadow: 0 10px 30px var(--rectangle-container);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--rectangle-container);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Features Section */
.features {
  padding: 6rem 0;
  background: var(--background-secondary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-letter);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--secondary-letter);
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.feature-card {
  background: var(--white-letter);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--box-shadow);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--input-border);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--box-shadow);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white-letter);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-letter);
}

.feature-card p {
  color: var(--secondary-letter);
  line-height: 1.7;
}

/* Apps Section */
.apps-section {
  padding: 6rem 0;
  background: var(--white-letter);
}

.app-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.app-item:nth-child(even) .app-content {
  order: 2;
}

.app-item:nth-child(even) .app-image {
  order: 1;
}

.app-content h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-letter);
}

.app-content p {
  font-size: 1.1rem;
  color: var(--secondary-letter);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.app-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white-letter);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.app-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--box-shadow);
}

.app-button.secondary {
  background: var(--white-letter);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.app-button.secondary:hover {
  background: var(--primary);
  color: var(--white-letter);
}

.app-image {
  text-align: center;
}

.app-mockup {
  width: 300px;
  height: 600px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 30px;
  display: inline-block;
  position: relative;
  box-shadow: 0 20px 40px var(--box-shadow);
  overflow: hidden;
}

.app-mockup::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.app-mockup::after {
  content: "Tofy Dely";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white-letter);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Footer */
.footer {
  background: var(--primary-letter);
  color: var(--white-letter);
  padding: 3rem 0 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-links {
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--footer-link-hover);
}

.footer-bottom {
  border-top: 1px solid var(--quinary);
  padding-top: 1rem;
  color: var(--footer-text);
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white-letter);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--input-border);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Animación de ripple para botones */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Media Queries - Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .app-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-item:nth-child(even) .app-content,
  .app-item:nth-child(even) .app-image {
    order: initial;
  }

  .app-buttons {
    justify-content: center;
  }
}