/**
 * Premium Page Styles - Integrado con elegance_lightblue
 *
 * @package   mundotecnico/premium
 * @copyright (c) 2025 MundoTécnico
 * @license   GNU General Public License, version 2 (GPL-2.0)
 * @version   0.7.5
 *
 * Compatible con phpBB 3.3.15 + prosilver + elegance_lightblue
 *
 * Estructura:
 * 1. Variables CSS
 * 2. Animaciones
 * 3. Contenedor principal
 * 4. Hero section
 * 5. Alertas
 * 6. Grid de planes
 * 7. Cards de planes
 * 8. Características
 * 9. Precio
 * 10. Botones de pago
 * 11. Selector de región
 * 12. Sección de confianza
 * 13. FAQ
 * 14. Placeholder internacional
 * 15. Responsive design
 * 16. Accesibilidad
 * 17. Print styles
 */

/* ========================================
   VARIABLES CSS
   ======================================== */

:root {
  /* Colores del tema */
  --premium-primary: #448ebd;
  --premium-primary-hover: #c14626;
  --premium-primary-light: #5d88a4;
  --premium-bg-main: #f4f4f4;
  --premium-bg-secondary: #e4e4e4;
  --premium-bg-white: #ffffff;
  --premium-text: #141414;
  --premium-text-secondary: #5b5b5b;
  --premium-text-muted: #a0a0a0;
  --premium-border: #e7e7e7;
  --premium-border-light: #f9f9f9;
  
  /* Espaciado consistente */
  --premium-spacing-xs: 5px;
  --premium-spacing-sm: 10px;
  --premium-spacing-md: 20px;
  --premium-spacing-lg: 30px;
  
  /* Bordes redondeados */
  --premium-radius: 5px;
  --premium-radius-sm: 3px;
  --premium-radius-md: 8px;
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ========================================
   CONTENEDOR PRINCIPAL
   ======================================== */

.mt-premium { 
  margin: 0 0 var(--premium-spacing-md); 
  animation: fadeIn 0.5s ease-in;
  clear: both;
}

/* ========================================
   HERO SECTION
   ======================================== */

.mt-hero {
  background: var(--premium-primary);
  background-image: -webkit-linear-gradient(top, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  color: #fff;
  text-align: center;
  margin-bottom: var(--premium-spacing-md);
  border-radius: var(--premium-radius);
  overflow: hidden;
  box-shadow: 0 0 1px 1px rgba(255,255,255,0.5) inset, 
              0 0 3px 1px rgba(128,128,128,0.1) inset, 
              1px 1px 3px rgba(0,0,0,0.15);
}

.mt-hero .inner { 
  padding: 25px 20px 20px;
}

.mt-hero__content {
  max-width: 700px;
  margin: 0 auto;
}

.mt-hero__icon {
  color: #fff;
  margin-bottom: 12px;
  animation: pulse 3s ease-in-out infinite;
  opacity: 0.9;
}

.mt-title { 
  margin: 8px 0 12px !important;
  font-size: 3.8em !important;
  line-height: 1.2 !important;
  font-weight: bold !important;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  color: #ffffff !important;
  text-shadow: 
    0 2px 4px rgba(0,0,0,0.5),
    0 4px 8px rgba(0,0,0,0.3),
    0 0 20px rgba(255,255,255,0.2) !important;
  letter-spacing: 0.5px !important;
}

.mt-sub { 
  margin: 0; 
  color: rgba(255,255,255,0.95); 
  font-size: 1.8em !important;
  line-height: 1.6;
  font-weight: normal;
  font-family: "Droid Sans", "Open Sans", "Trebuchet MS", Helvetica, Arial, sans-serif;
}

/* ========================================
   ALERTAS
   ======================================== */

.mt-alert { 
  margin-top: 16px;
  border-radius: var(--premium-radius-sm);
  overflow: hidden;
}

.mt-alert--warning {
  background: var(--premium-bg-white);
  border: 2px solid var(--premium-primary-hover);
}

.mt-alert .inner { 
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mt-alert .icon {
  color: var(--premium-primary-hover);
  flex-shrink: 0;
  font-size: 1.3em;
}

.mt-alert__text { 
  margin: 0;
  color: var(--premium-text);
  font-size: 13px;
  font-weight: normal;
  line-height: 1.4;
}

/* ========================================
   GRID DE PLANES
   ======================================== */

.mt-grid {
  display: block;
  margin-top: var(--premium-spacing-md);
}

.mt-grid::after {
  content: '';
  display: table;
  clear: both;
}

/* ========================================
   CARDS DE PLANES
   ======================================== */

.mt-card {
  background: var(--premium-bg-main);
  border: 1px solid var(--premium-border-light);
  border-radius: var(--premium-radius);
  padding: 4px 9px;
  background-image: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%),
                    -webkit-linear-gradient(top, rgba(204,204,204,0.2) 0%, rgba(204,204,204,0.25) 10px, rgba(204,204,204,0) 50px);
  background-image: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%),
                    linear-gradient(to bottom, rgba(204,204,204,0.2) 0%, rgba(204,204,204,0.25) 10px, rgba(204,204,204,0) 50px);
  box-shadow: 0 0 1px 1px rgba(255,255,255,0.5) inset, 
              0 0 3px 1px rgba(128,128,128,0.1) inset, 
              1px 1px 3px rgba(0,0,0,0.15),
              0 10px 10px -10px rgba(0,0,0,0.2);
  margin-bottom: var(--premium-spacing-sm);
  float: left;
  width: 31%;
  margin-right: 3.5%;
  box-sizing: border-box;
  animation: slideUp 0.6s ease-out backwards;
  transition: all 0.3s ease;
  position: relative;
}

.mt-card:nth-child(1) { animation-delay: 0.1s; }
.mt-card:nth-child(2) { animation-delay: 0.2s; }
.mt-card:nth-child(3) { animation-delay: 0.3s; margin-right: 0; }

.mt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 1px 1px rgba(255,255,255,0.5) inset, 
              0 0 3px 1px rgba(128,128,128,0.1) inset, 
              1px 1px 5px rgba(0,0,0,0.2),
              0 15px 15px -10px rgba(0,0,0,0.3);
}

.mt-card .inner { 
  padding: 20px 10px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.mt-card--featured {
  border: 2px solid var(--premium-primary);
  background: var(--premium-bg-white);
}

.mt-card--featured::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--premium-primary);
  margin: -20px -10px 20px;
  background-image: -webkit-linear-gradient(top, rgba(255,255,255,0.2) 0, rgba(255,255,255,0) 100%);
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.2) 0, rgba(255,255,255,0) 100%);
}

.mt-card__badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--premium-primary-hover);
  background-image: -webkit-linear-gradient(top, rgba(255,255,255,0.2) 0, rgba(255,255,255,0) 100%);
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.2) 0, rgba(255,255,255,0) 100%);
  color: #fff;
  padding: 6px 12px;
  border-bottom-left-radius: var(--premium-radius-sm);
  font-weight: bold;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.mt-card__badge .icon {
  margin-right: 4px;
  font-size: 12px;
}

.mt-card__header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--premium-border);
  text-align: center;
}

.mt-card__title { 
  margin: 0 0 8px; 
  font-size: 32px;
  font-weight: normal;
  font-family: "Droid Sans", "Open Sans", "Trebuchet MS", Helvetica, Arial, sans-serif;
  color: var(--premium-primary);
  line-height: 1.3;
  text-align: center;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.mt-card:hover .mt-card__title {
  color: var(--premium-primary-hover);
  text-shadow: 0 1px 2px rgba(193, 70, 38, 0.2);
}

.mt-card:hover .mt-button {
  background: var(--premium-primary-hover);
  box-shadow: 0 4px 8px rgba(193, 70, 38, 0.3);
}

.mt-card__desc { 
  margin: 0; 
  color: var(--premium-text-secondary); 
  line-height: 1.4;
  font-size: 18px;
  text-align: center;
}

.mt-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--premium-text-muted);
}

/* ========================================
   CARACTERÍSTICAS
   ======================================== */

.mt-features {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  flex-grow: 1;
}

.mt-features__item {
  padding: 6px 0;
  color: var(--premium-text);
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  padding-left: 20px;
  transition: color 0.2s ease;
}

.mt-features__item::before {
  content: '\f00c';
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  color: #27AE60;
  font-size: 14px;
}

.mt-features__item:hover {
  color: var(--premium-primary);
}

.mt-features__item .icon {
  margin-right: 8px;
  color: #27AE60;
  width: 16px;
  display: inline-block;
  text-align: center;
}

/* ========================================
   PRECIO
   ======================================== */

.mt-price {
  margin: auto 0 16px;
  padding: 16px 0;
  text-align: center;
  border-top: 2px solid var(--premium-border);
}

.mt-price__amount {
  display: block;
  font-size: 42px;
  font-weight: bold;
  color: var(--premium-primary);
  line-height: 1;
  margin-bottom: 6px;
  font-family: "Droid Sans", "Open Sans", "Trebuchet MS", Helvetica, Arial, sans-serif;
}

.mt-price__duration {
  display: block;
  font-size: 14px;
  color: var(--premium-text-secondary);
  font-weight: normal;
}

/* ========================================
   BOTONES DE PAGO
   ======================================== */

.mt-card__cta {
  margin-top: auto;
  text-align: center;
}

.mt-card__cta form {
  margin: 0;
}

.mt-button {
  display: inline-block;
  padding: 6px 12px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  border-radius: var(--premium-radius-sm);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  width: 100%;
  box-sizing: border-box;
  font-family: "Droid Sans", "Open Sans", "Trebuchet MS", Helvetica, Arial, sans-serif;
  background: var(--premium-primary);
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mt-button:hover {
  background: var(--premium-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(193, 70, 38, 0.4);
}

.mt-button--primary {
  background: var(--premium-primary);
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mt-button--primary:hover {
  background: var(--premium-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(193, 70, 38, 0.4);
}

.mt-button--secondary {
  background: var(--premium-primary-light);
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mt-button--secondary:hover {
  background: var(--premium-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(193, 70, 38, 0.4);
}

.mt-button--featured {
  background: var(--premium-primary-hover);
}

.mt-button--featured:hover {
  background: var(--premium-primary);
}

.mt-button .icon {
  margin-right: 6px;
}

/* ========================================
   SELECTOR DE REGIÓN
   ======================================== */

.mt-region-selector {
  margin: var(--premium-spacing-lg) 0;
}

.mt-region-selector__header {
  text-align: center;
  margin-bottom: var(--premium-spacing-md);
}

.mt-region-selector__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: normal;
  font-family: "Droid Sans", "Open Sans", "Trebuchet MS", Helvetica, Arial, sans-serif;
  color: var(--premium-primary);
}

.mt-region-selector__title .icon {
  margin-right: 8px;
  color: var(--premium-primary);
}

.mt-region-selector__subtitle {
  margin: 0;
  color: var(--premium-text-secondary);
  font-size: 14px;
}

.mt-region-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.mt-region-card {
  flex: 1 1 calc(50% - 10px);
  max-width: 450px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  position: relative;
}

.mt-region-card:hover {
  transform: translateY(-6px);
}

.mt-region-card .inner {
  padding: 32px 24px;
  text-align: center;
}

.mt-region-card__flag {
  margin-bottom: 16px;
}

.mt-region-card__flag .icon {
  color: var(--premium-primary);
  transition: all 0.3s ease;
}

.mt-region-card:hover .mt-region-card__flag .icon {
  transform: scale(1.1);
}

.mt-region-card__country {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: bold;
  color: var(--premium-text);
  font-family: "Droid Sans", "Open Sans", "Trebuchet MS", Helvetica, Arial, sans-serif;
}

.mt-region-card__payment {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--premium-text-secondary);
  font-weight: bold;
}

.mt-region-card__payment .icon {
  margin-right: 6px;
  color: var(--premium-primary);
}

.mt-region-card__desc {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--premium-text-secondary);
  line-height: 1.5;
}

.mt-region-card--argentina .mt-region-card__flag .icon {
  color: #448ebd;
}

.mt-region-card--international .mt-region-card__flag .icon {
  color: #5d88a4;
}

/* ========================================
   SECCIÓN DE CONFIANZA
   ======================================== */

.mt-trust {
  margin: var(--premium-spacing-lg) 0;
}

.mt-trust .inner {
  padding: 24px 16px;
}

.mt-trust__title {
  margin: 0 0 24px;
  font-size: 21px;
  font-weight: normal;
  text-align: center;
  font-family: "Droid Sans", "Open Sans", "Trebuchet MS", Helvetica, Arial, sans-serif;
  color: var(--premium-primary);
}

.mt-trust__title .icon {
  margin-right: 8px;
  color: var(--premium-primary);
}

.mt-trust__items {
  display: block;
}

.mt-trust__items::after {
  content: '';
  display: table;
  clear: both;
}

.mt-trust__item {
  float: left;
  width: 24%;
  margin-right: 1.333%;
  text-align: center;
  padding: 16px 8px;
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.mt-trust__item:nth-child(4) {
  margin-right: 0;
}

.mt-trust__item:hover {
  transform: translateY(-4px);
}

.mt-trust__item .icon {
  display: block;
  margin-bottom: 12px;
  color: var(--premium-primary);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.mt-trust__item:hover .icon {
  opacity: 1;
  transform: scale(1.1);
}

.mt-trust__text {
  margin: 0;
  font-size: 13px;
  font-weight: bold;
  color: var(--premium-text);
  line-height: 1.4;
}

/* ========================================
   FAQ
   ======================================== */

.mt-faq {
  margin: var(--premium-spacing-lg) 0;
}

.mt-faq .inner {
  padding: 24px 16px;
}

.mt-faq h3 {
  margin: 0 0 20px;
  font-size: 21px;
  font-weight: normal;
  text-align: center;
  font-family: "Droid Sans", "Open Sans", "Trebuchet MS", Helvetica, Arial, sans-serif;
  color: var(--premium-primary);
}

.mt-faq__item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--premium-border);
}

.mt-faq__item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.mt-faq__question {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: bold;
  color: var(--premium-text);
  line-height: 1.4;
}

.mt-faq__question .icon {
  margin-right: 8px;
  color: var(--premium-primary);
}

.mt-faq__answer {
  margin: 0;
  font-size: 13px;
  color: var(--premium-text-secondary);
  line-height: 1.6;
  padding-left: 24px;
}

/* ========================================
   PLACEHOLDER INTERNACIONAL
   ======================================== */

.mt-placeholder {
  margin: var(--premium-spacing-lg) 0;
  text-align: center;
}

.mt-placeholder .inner {
  padding: 48px 24px;
}

.mt-placeholder__icon {
  color: var(--premium-primary);
  margin-bottom: 20px;
  opacity: 0.7;
}

.mt-placeholder__title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: normal;
  font-family: "Droid Sans", "Open Sans", "Trebuchet MS", Helvetica, Arial, sans-serif;
  color: var(--premium-primary);
}

.mt-placeholder__subtitle {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--premium-text-secondary);
}

.mt-placeholder__text {
  margin: 0 0 32px;
  font-size: 15px;
  color: var(--premium-text-secondary);
  line-height: 1.6;
}

.mt-payment-methods {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--premium-bg-white);
  border-radius: var(--premium-radius-sm);
  border: 1px solid var(--premium-border);
}

.mt-payment-methods__title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: bold;
  color: var(--premium-primary);
  text-align: center;
}

.mt-payment-methods__grid {
  display: block;
  text-align: center;
}

.mt-payment-methods__grid::after {
  content: '';
  display: table;
  clear: both;
}

.mt-payment-method {
  display: inline-block;
  width: 30%;
  padding: 16px 10px;
  text-align: center;
  color: var(--premium-text-secondary);
  transition: all 0.3s ease;
}

.mt-payment-method .icon {
  display: block;
  margin-bottom: 8px;
  color: var(--premium-primary);
  font-size: 36px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.mt-payment-method span {
  display: block;
  font-size: 13px;
  font-weight: bold;
}

.mt-payment-method:hover .icon {
  opacity: 1;
  transform: scale(1.1);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 900px) {
  .mt-card {
    width: 48%;
    margin-right: 4%;
  }
  
  .mt-card:nth-child(2) {
    margin-right: 0;
  }
  
  .mt-card:nth-child(3) {
    width: 100%;
    margin-right: 0;
    margin-top: var(--premium-spacing-sm);
  }
  
  .mt-region-grid {
    gap: 15px;
  }
  
  .mt-region-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .mt-trust__item {
    width: 48%;
    margin-right: 4%;
    margin-bottom: var(--premium-spacing-sm);
  }
  
  .mt-trust__item:nth-child(2n) {
    margin-right: 0;
  }
  
  .mt-trust__item:nth-child(4) {
    margin-right: 0;
  }
}

@media (max-width: 700px) {
  .mt-title { font-size: 2em !important; }
  .mt-sub { font-size: 1em !important; }
  
  .mt-card {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: var(--premium-spacing-sm);
  }
  
  .mt-card .inner {
    min-height: auto;
  }
  
  .mt-region-card .inner {
    padding: 24px 16px;
  }
  
  .mt-region-selector__title {
    font-size: 20px;
  }
  
  .mt-trust__item {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: var(--premium-spacing-sm);
  }
  
  .mt-price__amount { font-size: 36px; }
  
  .mt-payment-method {
    width: 100%;
    margin-bottom: 12px;
  }
  
  .mt-placeholder .inner {
    padding: 32px 16px;
  }
  
  .mt-placeholder__title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .mt-hero .inner {
    padding: 30px 16px 24px;
  }
  
  .mt-title { font-size: 1.6em !important; }
  .mt-hero__icon { font-size: 2em !important; }
  
  .mt-price__amount { font-size: 30px; }
  
  .mt-button {
    font-size: 14px;
    padding: 5px 10px;
  }
  
  .mt-region-card__flag .icon {
    font-size: 36px;
  }
  
  .mt-region-card__country {
    font-size: 18px;
  }
  
  .mt-placeholder__icon {
    font-size: 3em !important;
  }
}

/* ========================================
   ACCESIBILIDAD
   ======================================== */

.mt-button:focus,
.mt-card:focus-within,
.mt-region-card:focus {
  outline: 2px solid var(--premium-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .mt-region-card,
  .mt-region-card__flag .icon,
  .mt-payment-method .icon {
    transition: none;
  }

  .mt-region-card:hover {
    transform: none;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .mt-hero {
    background: none !important;
    color: #000 !important;
  }
  
  .mt-card,
  .mt-region-card {
    page-break-inside: avoid;
  }
  
  .mt-button {
    display: none;
  }
}