/* 
 * HostingMTA - Responsive Stylesheet
 * Author: v0
 * Version: 1.0
 */

/* Large Devices (Desktops) */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-content {
    gap: 2rem;
  }

  .floating-element-1 {
    left: 0;
  }

  .floating-element-2 {
    right: 0;
  }
}

/* Medium Devices (Tablets) */
@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

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

  .hero-text {
    text-align: center;
  }

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

  .hero-image {
    margin-top: 2rem;
  }

  .floating-element {
    display: none;
  }

  .plan-card.popular {
    transform: scale(1);
  }

  .plan-card.popular:hover {
    transform: translateY(-10px);
  }

  .auth-container {
    grid-template-columns: 1fr;
  }

  .auth-image {
    display: none;
  }
}

/* Small Devices (Landscape Phones) */
@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .header-content {
    position: relative;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 80px 2rem 2rem;
  }

  .main-nav.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .header-buttons {
    display: none;
  }

  .hero-section {
    padding: 150px 0 80px;
  }

  .hero-text p {
    font-size: 1rem;
  }

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

  .domain-search-form {
    flex-direction: column;
    border-radius: 1rem;
  }

  .domain-input {
    border-radius: 1rem 1rem 0 0;
  }

  .domain-select {
    border-radius: 0;
    text-align: center;
  }

  .domain-search-form .btn {
    border-radius: 0 0 1rem 1rem;
  }

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

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

  .footer-bottom-links {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 576px) {
  .container {
    width: 100%;
    padding: 0 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .logo img {
    height: 30px;
  }

  .domain-prices {
    flex-direction: column;
    align-items: center;
  }

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

  .social-auth {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
}

/* Pricing Toggle Responsive */
@media (max-width: 480px) {
  .pricing-toggle {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Show Annual Prices when Toggle is Checked */
body.annual-pricing .price.monthly {
  display: none;
}

body.annual-pricing .price.annually {
  display: block;
}

body.annual-pricing .toggle-label:first-child {
  color: rgba(255, 255, 255, 0.7);
}

body.annual-pricing .toggle-label:last-child {
  color: var(--light);
}

/* Simple Payment Methods & Social Media - Responsive */
@media (max-width: 768px) {
  /* Ajuste de altura del contenedor para que la captura de cPanel se vea completa en móviles */
  .cpanel-image { min-height: 320px; }
  .payment-methods-simple,
  .social-methods-simple {
    gap: var(--spacing-xs);
  }
  
  .payment-card-simple,
  .social-card-simple {
    width: 45px;
    height: 28px;
    font-size: 1rem;
  }
  
  .payment-more {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .payment-methods-simple,
  .social-methods-simple {
    justify-content: flex-start;
  }
  
  .payment-card-simple,
  .social-card-simple {
    width: 40px;
    height: 26px;
    font-size: 0.9rem;
  }
  
  .payment-more {
    font-size: 0.7rem;
    margin-left: var(--spacing-xs);
  }
  
  /* Back to Top Button - Mobile positioning (clears halo) */
  .back-to-top {
    bottom: 110px; /* 20 + 60 + ~20 halo + 10 margen */
    right: 15px;
    width: 45px;
    height: 45px;
  }
}

/* Mobile fixes: ensure the 3D globe stacks below the title buttons */
@media (max-width: 768px) {
  /* Asegura que la imagen/globo se apile debajo del título y sus botones */
  .hero-image,
  .hero-world {
    order: 2;
    width: 100%;
    margin-top: 1.5rem;
    display: block;
  }

  /* Tamaño consistente y centrado del contenedor del globo */
  .world-visual {
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }
}

