/* ========================================
   EMOTIONIART - RESPONSIVE.CSS
   Diseño Responsive Mobile-First
   ======================================== */

/* ===== BREAKPOINT: Teléfonos Pequeños (< 480px) ===== */
@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  h3 {
    font-size: 1.5rem !important;
  }

  .hero h1 {
    font-size: 2.25rem !important;
  }

  .hero p {
    font-size: 1rem !important;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
  }

  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .nav-menu {
    display: none;
  }

  .platforms-grid,
  .features-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .platform-card,
  .feature-item {
    padding: 1.5rem;
  }

  .platform-icon,
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }

  .footer-bottom {
    font-size: 0.75rem;
  }
}

/* ===== BREAKPOINT: Teléfonos Grandes (481px - 768px) ===== */
@media (min-width: 481px) and (max-width: 768px) {
  :root {
    font-size: 15px;
  }

  .container {
    padding: 0 1.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  h1 {
    font-size: 3rem !important;
  }

  h2 {
    font-size: 2.25rem !important;
  }

  .hero h1 {
    font-size: 2.75rem !important;
  }

  .hero-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }

  .platforms-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 1.75rem;
    right: 1.75rem;
  }
}

/* ===== BREAKPOINT: Tablets (769px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    font-size: 16px;
  }

  .container {
    padding: 0 2rem;
  }

  .section {
    padding: 5rem 0;
  }

  h1 {
    font-size: 3.5rem !important;
  }

  .hero h1 {
    font-size: 3.25rem !important;
  }

  .hero-buttons .btn {
    padding: 1.125rem 2.75rem;
    font-size: 1.125rem;
  }

  .platforms-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .whatsapp-float {
    width: 58px;
    height: 58px;
  }
}

/* ===== BREAKPOINT: Desktop Pequeño (1025px - 1280px) ===== */
@media (min-width: 1025px) and (max-width: 1280px) {
  .container {
    max-width: 1200px;
    padding: 0 2rem;
  }

  .platforms-grid,
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== BREAKPOINT: Desktop Grande (1281px - 1440px) ===== */
@media (min-width: 1281px) and (max-width: 1440px) {
  .container {
    max-width: 1300px;
  }

  .platforms-grid,
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== BREAKPOINT: Pantallas Grandes (> 1440px) ===== */
@media (min-width: 1441px) {
  .container {
    max-width: 1400px;
  }

  .platforms-grid,
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== BREAKPOINT: Pantallas Extra Grandes (> 1920px) ===== */
@media (min-width: 1921px) {
  .container {
    max-width: 1600px;
  }

  .hero h1 {
    font-size: 5.5rem !important;
  }

  .hero p {
    font-size: 1.75rem !important;
  }

  .platforms-grid,
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== AJUSTES ESPECÍFICOS PARA MÓVIL ===== */
@media (max-width: 768px) {
  /* Header */
  header {
    padding: 0.75rem 0;
  }

  header.scrolled {
    padding: 0.5rem 0;
  }

  .logo {
    font-size: 1.25rem;
  }

  .logo-img {
    height: 35px;
  }

  /* Navigation */
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    z-index: 1001;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background: var(--light);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    gap: 1.5rem;
    animation: slideInRight 0.3s ease-out;
  }

  .nav-menu.active .nav-link {
    color: var(--dark);
    font-size: 1.25rem;
    padding: 0.75rem 0;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 8rem 0 4rem;
  }

  /* Sections */
  .section-title {
    font-size: 1.75rem;
  }

  .section-title::after {
    width: 60px;
    height: 3px;
  }

  /* Cards */
  .card {
    margin-bottom: 1.5rem;
  }

  /* Buttons */
  .btn {
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
  }

  .btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
  }

  /* Footer */
  .footer-col {
    margin-bottom: 2rem;
  }

  .footer-bottom {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }

  /* WhatsApp */
  .whatsapp-float {
    width: 50px;
    height: 50px;
  }

  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }
}

/* ===== AJUSTES PARA TABLETS EN ORIENTACIÓN HORIZONTAL ===== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .hero {
    min-height: 80vh;
  }

  .platforms-grid,
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== AJUSTES PARA RETINA/ALTA DENSIDAD ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card-image,
  .platform-icon,
  .feature-icon {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== AJUSTES PARA IMPRESIÓN ===== */
@media print {
  body {
    background: white;
    color: black;
  }

  .whatsapp-float,
  header,
  .hero-buttons,
  .btn {
    display: none !important;
  }

  .card,
  .platform-card,
  .feature-item {
    box-shadow: none !important;
    border: 1px solid #ddd;
  }
}