/*
Theme Name: EpigScienceclub
Theme URI: https://epigscience.com/
Author: EpigScience
Author URI: https://epigscience.com
Description: Tema oficial optimizado para móviles (Mobile-First) para EpigScienceclub. Diseño ultra visual con botones de acción grandes, acceso rápido para miembros, DNA Health, Telehealth con e-Prescription, catálogo cerrado, sistema de referidos (20%/10%) y panel logístico 3PL en cadena de frío.
Version: 4.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: epigscienceclub
Tags: mobile-first, responsive, medical, peptides, membership, modern-design
*/

:root {
    --epig-navy: #070e1e;
    --epig-navy-card: #0b152d;
    --epig-blue: #0056d6;
    --epig-blue-hover: #0043a8;
    --epig-blue-light: #e0f2fe;
    --epig-cyan: #06b6d4;
    --epig-emerald: #10b981;
    --epig-emerald-dark: #059669;
    --epig-slate: #334155;
    --epig-slate-light: #64748b;
    --epig-gray-bg: #f8fafc;
    --epig-border: #e2e8f0;
    --epig-shadow: 0 4px 20px -2px rgba(11, 21, 45, 0.08);
    --epig-shadow-hover: 0 12px 28px -4px rgba(0, 86, 214, 0.16);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-btn: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    background-color: var(--epig-gray-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

.epig-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografía Responsiva */
h1 {
    font-size: clamp(28px, 6vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--epig-navy);
}

h2 {
    font-size: clamp(22px, 4.5vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--epig-navy);
}

h3 {
    font-size: clamp(18px, 3.5vw, 22px);
    font-weight: 700;
    color: var(--epig-navy);
}

/* Tarjetas Beautified */
.epig-card {
    background: #ffffff;
    border: 1px solid var(--epig-border);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 4vw, 36px);
    box-shadow: var(--epig-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.epig-card:hover {
    box-shadow: var(--epig-shadow-hover);
    border-color: #cbd5e1;
}

/* Botones Grandes de Alta Conversión y Touch-Friendly */
.epig-btn-giant {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    padding: 16px 28px;
    font-size: 17px;
    font-weight: 700;
    border-radius: var(--radius-btn);
    text-decoration: none;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.epig-btn-giant:active {
    transform: scale(0.98);
}

.epig-btn-primary {
    background: linear-gradient(135deg, #0056d6 0%, #1d4ed8 100%);
    color: #ffffff !important;
}

.epig-btn-primary:hover {
    background: linear-gradient(135deg, #0043a8 0%, #1e40af 100%);
    box-shadow: 0 8px 24px rgba(0, 86, 214, 0.35);
}

.epig-btn-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
}

.epig-btn-emerald:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.epig-btn-outline {
    background: #ffffff;
    color: var(--epig-navy) !important;
    border: 2px solid var(--epig-border);
}

.epig-btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.epig-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Campos de Formulario Móviles */
.epig-input, .epig-select {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    color: #0f172a;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.epig-input:focus, .epig-select:focus {
    outline: none;
    border-color: var(--epig-blue);
    box-shadow: 0 0 0 3px rgba(0, 86, 214, 0.15);
}

/* Cuadrículas Adaptables */
.epig-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.epig-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Navegación Móvil */
.epig-nav-menu {
    display: flex;
    gap: 12px;
    align-items: center;
}

@media (max-width: 768px) {
    .epig-container {
        padding: 0 16px;
    }
    .epig-header-top {
        display: none !important;
    }
    .epig-nav-menu {
        display: none; /* Simplificado para móviles con acceso de un clic */
    }
    .epig-grid-2, .epig-grid-3 {
        grid-template-columns: 1fr;
    }
}
