/* ==========================================
   ARRANKAGO - ESTILOS COMPLETOS OPTIMIZADOS
   ========================================== */

/* Reset y Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --secondary: #6c757d;
  --success: #198754;
  --danger: #dc3545;
  --warning: #ffc107;
  --dark: #212529;
  --light: #f8f9fa;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-blue: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.logo i {
  font-size: 2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

.btn-app {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s;
}

.btn-app:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  background: url('https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?w=1920') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.8), rgba(102, 126, 234, 0.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  display: block;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

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

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 3rem;
}

/* Services Section */
.services {
  background: var(--white);
  padding: 3rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid var(--light);
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-blue);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.8rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.service-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s;
  font-size: 0.95rem;
}

.service-link:hover {
  gap: 10px;
}

/* How It Works */
.how-it-works {
  background: var(--light);
  padding: 3rem 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  text-align: center;
  position: relative;
  padding: 2rem 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s;
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background: var(--gradient-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: bold;
}

.step-icon {
  width: 90px;
  height: 90px;
  margin: 1.5rem auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  font-size: 2.2rem;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.step h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

/* Pricing */
.pricing {
  background: var(--white);
  padding: 3rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--light);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  opacity: 0;
  transform: scale(0.9);
}

.pricing-card.visible {
  opacity: 1;
  transform: scale(1);
}

.pricing-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.05), var(--white));
}

.badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-blue);
  color: var(--white);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.85rem;
}

.pricing-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.price {
  margin-bottom: 1.5rem;
}

.currency {
  font-size: 1.1rem;
  vertical-align: super;
}

.amount {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary);
}

.period {
  color: var(--secondary);
  font-size: 0.95rem;
}

.features {
  list-style: none;
  margin-bottom: 1.5rem;
  text-align: left;
}

.features li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--light);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.features i {
  color: var(--success);
}

/* Testimonials */
.testimonials {
  background: var(--light);
  padding: 3rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(30px);
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stars {
  color: #ffc107;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1.2rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.author strong {
  color: var(--dark);
  font-size: 0.95rem;
}

.author span {
  color: var(--secondary);
  font-size: 0.85rem;
}

/* Join CTA */
.join-cta {
  background: var(--gradient-blue);
  color: var(--white);
  text-align: center;
  padding: 3rem 0;
}

.join-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.join-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.benefits {
  list-style: none;
  display: inline-block;
  text-align: left;
  margin-bottom: 2rem;
}

.benefits li {
  padding: 0.6rem 0;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefits i {
  font-size: 1.2rem;
}

/* App Download */
.app-download {
  background: var(--white);
  padding: 3rem 0;
}

.app-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.app-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.app-text p {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.app-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.9rem 1.3rem;
  background: var(--dark);
  color: var(--white);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s;
}

.app-btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.app-btn i {
  font-size: 2.2rem;
}

.app-btn div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.app-btn span {
  font-size: 0.75rem;
}

.app-btn strong {
  font-size: 1rem;
}

.app-image {
  text-align: center;
  font-size: 15rem;
  color: var(--primary);
  opacity: 0.1;
}

/* ==========================================
   MONETIZACIÓN - ANUNCIOS OPTIMIZADOS
   ========================================== */

/* Banner Publicitario - MÁS COMPACTO */
.ad-banner {
  background: var(--light);
  padding: 1rem 0;
  text-align: center;
}

.ad-banner .container {
  max-width: 728px;
}

.ad-banner ins {
  display: block;
  min-height: 90px;
  max-height: 120px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px dashed rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Anuncios en Cards - MÁS PEQUEÑOS */
.ad-card {
  background: rgba(13, 110, 253, 0.03) !important;
  border: 2px dashed rgba(13, 110, 253, 0.2) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: 250px;
}

.ad-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

.ad-card ins {
  width: 100%;
  min-height: 180px;
  max-height: 230px;
}

/* Sponsored Section - MÁS COMPACTO */
.sponsored-section {
  background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
  padding: 2.5rem 0;
  margin: 2rem 0;
}

.sponsored-label {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.sponsored-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sponsored-ad {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.sponsored-ad h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--dark);
}

.sponsored-ad p {
  font-size: 1.05rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

/* ==========================================
   VIDEOS DE YOUTUBE - LAYOUT HORIZONTAL
   ========================================== */

.youtube-section {
  padding: 3rem 0;
  background: var(--white);
}

.youtube-section .section-title i {
  color: #FF0000;
  margin-right: 10px;
}

/* GRID HORIZONTAL - 2 videos por fila */
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.youtube-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.youtube-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Video Wrapper - Aspect ratio 16:9 */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.youtube-card h3 {
  padding: 1.2rem 1.2rem 0.4rem;
  font-size: 1.15rem;
  color: var(--dark);
}

.youtube-card p {
  padding: 0 1.2rem 1.2rem;
  color: var(--secondary);
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Anuncio en youtube grid - ocupa 1 espacio */
.youtube-grid .ad-card {
  min-height: auto;
}

/* Sidebar Ads - MÁS PEQUEÑO */
.sidebar-ads {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  z-index: 999;
  display: none;
}

.sidebar-ads ins {
  max-height: 600px;
}

@media (min-width: 1400px) {
  .sidebar-ads {
    display: block;
  }
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  background: var(--dark);
  color: var(--white);
  padding: 2.5rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.7rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--white);
}

.social-icons {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-icons a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

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

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

.animate-fade-in-delay {
  animation: fadeIn 0.8s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 0.8s ease-out 0.6s both;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablets y menores */
@media (max-width: 1024px) {
  .youtube-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }

  .nav.active {
    left: 0;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-stats {
    gap: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.05rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .youtube-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }

  .app-content {
    grid-template-columns: 1fr;
  }

  .app-image {
    font-size: 8rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .sponsored-ad {
    padding: 1.5rem;
  }
  
  .ad-banner {
    padding: 0.5rem 0;
  }
  
  section {
    padding: 2.5rem 0;
  }
}
