/*
 * FOODPOSS - Component Classes
 * Clases CSS para reemplazar inline styles
 */

/* ========== UTILIDADES DE TEXTO ========== */
.text-primary { color: var(--color-gray-500); }
.text-white { color: var(--color-white); }
.text-accent { color: var(--color-primary); }

.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

/* ========== ENLACES ========== */
.link-white {
    color: var(--color-white);
    text-decoration: none;
    display: block;
}

.link-white:hover {
    color: var(--color-primary);
}

.link-white-muted {
    color: var(--color-white);
    text-decoration: none;
    display: block;
    margin-right: var(--space-4);
    font-size: var(--text-xl);
}

.link-white-muted:hover {
    color: var(--color-primary);
}

.link-block {
    color: var(--color-white);
    text-decoration: none;
    display: block;
}

.link-block:hover {
    color: var(--color-primary);
}

.link-gap-sm {
    color: var(--color-white);
    text-decoration: none;
    display: block;
    margin-bottom: var(--space-2);
}

.link-gap-sm:hover {
    color: var(--color-primary);
}

/* ========== LAYOUT ========== */
.margin-top-sm { margin-top: var(--space-6); }
.margin-top-md { margin-top: var(--space-8); }
.margin-top-lg { margin-top: var(--space-10); }

.width-full { width: 100%; }
.height-full { height: 100%; }

/* ========== IMÁGENES ========== */
.img-responsive {
    width: 100%;
    border-radius: var(--radius-lg);
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== BOTONES ========== */
.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(77, 159, 255, 0.6);
}

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

.btn-white:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ========== CARDS ========== */
.card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: var(--space-5);
    transition: var(--transition-fast);
}

.card:hover {
    border-color: rgba(77, 159, 255, 0.2);
    background: rgba(13, 18, 32, 0.6);
    transform: translateY(-5px);
}

.card-dark {
    background: var(--color-dark);
    border-radius: var(--radius-xl);
}

/* ========== SECCIONES ========== */
.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.section-fullwidth {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.section-padding {
    padding: var(--space-24) 0;
}

/* ========== GRID ========== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
}

/* ========== FLEX ========== */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.flex-gap-sm { gap: var(--space-3); }
.flex-gap-md { gap: var(--space-5); }
.flex-gap-lg { gap: var(--space-8); }

/* ========== ANIMACIONES ========== */
@keyframes floatA {
    0%, 100% { transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(-15px); }
}

@keyframes floatB {
    0%, 100% { transform: perspective(1000px) rotateY(15deg) rotateX(-5deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(15deg) rotateX(-5deg) translateY(15px); }
}

@keyframes floatC {
    0%, 100% { transform: perspective(1000px) rotateY(-5deg) rotateX(20deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-5deg) rotateX(20deg) translateY(-15px); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes float-cards {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== DECORACIONES ========== */
.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(77, 159, 255, 0.1) 0%, rgba(7, 10, 18, 0) 70%);
    top: -100px;
    right: -100px;
    z-index: 1;
    pointer-events: none;
}

.glow-center {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(77, 159, 255, 0.03) 0%, rgba(7, 10, 18, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

/* ========== ESTILOS MIGRADOS DE INLINE ========== */
/* Texto con color gris claro */
.text-muted-lg {
    color: #94a3b8;
    font-size: 20px;
    line-height: 1.6;
}

.text-muted-sm {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
}

/* Margin top */
.mt-6 { margin-top: 25px; }

/* Links con icono */
.link-icon {
    color: var(--color-white);
    margin-right: 15px;
    font-size: 20px;
}

.link-icon:hover {
    color: var(--color-primary);
}

/* Imagen con borde redondeado */
.img-rounded {
    width: 100%;
    border-radius: 12px;
}

/* Divider transparente (para los que tienen style="") */
.et_pb_top_inside_divider {
    background: transparent;
}

/* ========== ESTILOS ADICIONALES ========== */
/* Logo en sección */
.logo-fixed {
    position: absolute;
    bottom: 20px;
    left: 20px;
    height: 50px;
    z-index: 3;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

/* Card con borde accent */
.card-accent {
    border-color: rgba(77, 159, 255, 0.4);
}

/* Texto con opacity */
.text-opacity {
    opacity: 0.9;
}

/* Iconos grandes */
.icon-lg {
    font-size: 50px;
    margin-bottom: 20px;
}

.icon-md {
    font-size: 40px;
    margin-bottom: 10px;
}

.icon-sm {
    margin-top: auto;
}

/* Texto centrado */
.text-center {
    text-align: center;
}

/* Margin top grande */
.mt-10 {
    margin-top: 100px;
}

/* Color texto terciario */
.text-tertiary {
    color: var(--t3);
}

/* Opacity baja */
.opacity-low {
    opacity: 0.2;
}

/* Font weight */
.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

/* Text white bold */
.text-white-bold {
    color: var(--color-white);
    font-weight: 700;
}

/* Demo specific */
.demo-title {
    color: var(--color-white);
}

.demo-price {
    font-weight: 600;
}

/* Botón inline */
.btn-inline {
    background: var(--blue);
    color: var(--color-white);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.btn-inline:hover {
    opacity: 0.9;
}

/* Variable colors (CSS custom properties) */
:root {
    --green: #2ecc71;
    --blue: #4d9fff;
    --t2: #94a3b8;
    --t3: #64748b;
}

/* Legal page */
.legal-footer-copy {
    margin-top: 30px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

/* Footer logo */
.footer-logo-img {
    height: 50px;
    opacity: 0.7;
}

/* Footer contact text */
.footer-contact-text {
    color: var(--t3);
    font-size: 14px;
    margin-bottom: 15px;
}

/* Demo v5 price */
.v5-price {
    font-weight: 600;
}

/* Margin bottom */
.mb-4 { margin-bottom: 15px; }
.mb-6 { margin-bottom: 30px; }

/* Text center with margin top */
.text-center-mt {
    text-align: center;
    margin-top: 100px;
}

/* Icon with styles */
.icon-static {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.2;
}

/* Color verde */
.color-green { color: var(--green); }

/* Color azul */
.color-blue { color: var(--blue); }

/* Text secondary color */
.text-secondary {
    color: var(--t2);
}

/* Text tertiary color */
.text-tertiary {
    color: var(--t3);
}

/* ========== SECCIONES DE MEJORAS ========== */

/* Header genérico para secciones */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header .section-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.section-header .section-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0;
}

.section-header p {
    color: #666;
    max-width: 600px;
    margin: 20px auto 0;
}

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

/* Sección Trust/Social Proof */
.section-trust {
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 100px 0;
}

.section-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 992px) {
    .section-trust__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .section-trust__grid { grid-template-columns: 1fr; }
}

.trust-stat {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.trust-stat__number {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-primary);
    display: block;
}

.trust-stat__label {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* Testimonios */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 992px) {
    .testimonials__grid { grid-template-columns: 1fr; max-width: 500px; margin: 50px auto 0; }
}

.testimonial-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 35px;
    transition: transform 0.4s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: rgba(77, 159, 255, 0.5);
}

.testimonial-card__stars {
    color: #ffc107;
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-card__quote {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card__name {
    font-weight: 700;
    color: #fff;
    font-size: 15px;
}

.testimonial-card__role {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* Calculadora ROI */
.section-roi {
    padding: 100px 0;
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
}

.roi-calculator {
    background: #fff;
    border-radius: 24px;
    padding: 50px;
    max-width: 800px;
    margin: 50px auto 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.roi-calculator__title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 30px;
}

.roi-calculator__input {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.roi-calculator__input label {
    font-size: 16px;
    color: #333;
    min-width: 200px;
}

.roi-calculator__input input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
}

.roi-calculator__input input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.roi-calculator__result {
    background: linear-gradient(135deg, var(--color-primary), #2d7fff);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: #fff;
}

.roi-calculator__result-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.roi-calculator__result-value {
    font-size: 42px;
    font-weight: 800;
}

.roi-calculator__result-note {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 10px;
}

/* Comparativa */
.section-compare {
    padding: 100px 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
}

.compare-table {
    width: 100%;
    max-width: 900px;
    margin: 50px auto 0;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.compare-table th {
    background: rgba(77, 159, 255, 0.2);
    color: #fff;
    font-weight: 700;
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.compare-table .foodposs-col {
    background: linear-gradient(145deg, rgba(77, 159, 255, 0.15), rgba(77, 159, 255, 0.05));
}

.compare-check {
    color: #2ecc71;
    font-size: 22px;
}

.compare-x {
    color: rgba(255,255,255,0.3);
    font-size: 18px;
}

.compare-highlight {
    color: var(--color-primary);
    font-weight: 700;
}

/* Badge Trial */
.badge-trial {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--color-primary), #2d7fff);
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 40px rgba(77, 159, 255, 0.4);
    z-index: 9999;
    cursor: pointer;
    animation: pulse-badge 2s infinite;
}

.badge-trial:hover {
    transform: scale(1.05);
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 10px 40px rgba(77, 159, 255, 0.4); }
    50% { box-shadow: 0 10px 60px rgba(77, 159, 255, 0.6); }
}

/* Urgencia */
.section-urgency {
    padding: 80px 0;
    background: linear-gradient(135deg, #e94560, #d63850);
    color: #fff;
    text-align: center;
}

.urgency__badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.urgency__title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.urgency__text {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.urgency__spots {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.15);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
}

.urgency__spots-number {
    font-size: 24px;
    font-weight: 800;
}