/* --- БАЗОВАЯ ОПТИМИЗАЦИЯ ПОД МОБИЛЬНЫЕ И СКРОЛЛИНГ --- */
body { 
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 
    line-height: 1.6; 
    margin: 0; 
    padding: 0; 
    background-color: #f4f4f4; 
    color: #1a1a1a; 
    -webkit-text-size-adjust: 100%; /* Убирает авто-увеличение текста на iOS */
}

.p-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

/* --- ШАПКА: АДАПТИВНОСТЬ --- */
.p-header-top { 
    background-color: #003366; 
    color: #ffffff; 
    padding: 8px 0; 
    font-size: 11px; 
}

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

/* На мобильных скрываем второстепенные элементы шапки */
@media (max-width: 600px) {
    .p-top-right, .p-header-info { display: none; } 
    .p-main-logo { height: 35px !important; }
}

.p-main-header { 
    background-color: #ffffff; 
    padding: 15px 0; 
    border-bottom: 1px solid #e0e0e0; 
}

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

.p-main-logo { height: 45px; width: auto; }

/* --- МОБИЛЬНОЕ МЕНЮ (СКРОЛЛИНГ ПО ГОРИЗОНТАЛИ) --- */
.p-nav-bar { 
    background-color: #ffffff; 
    border-bottom: 3px solid #003366; 
    padding: 5px 0; 
    overflow-x: auto; /* Позволяет листать меню пальцем вправо-влево */
    white-space: nowrap; 
    -webkit-overflow-scrolling: touch;
}

.p-flex-nav { 
    display: flex; 
    gap: 15px; 
    padding: 5px 10px;
}

.p-nav-item { 
    text-transform: uppercase; 
    font-size: 12px; 
    font-weight: bold; 
    text-decoration: none; 
    color: #333;
}

/* --- КОНТЕНТ СТАТЬИ (ГЛАВНОЕ ДЛЯ СКРОЛЛИНГА) --- */
.p-article-card { 
    background-color: #fff; 
    padding: 20px; 
    margin-top: 15px; 
    border-radius: 4px; 
}

.p-headline { 
    color: #003366; 
    font-size: 26px; /* Чуть меньше для мобильных, чтобы не было гигантским */
    line-height: 1.2; 
    font-weight: bold; 
}

.p-article-body { 
    font-size: 18px; /* Удобно для чтения со смартфона */
    line-height: 1.7; 
}

.p-article-body p { margin-bottom: 20px; }

/* Заглушки для фото - теперь всегда на 100% ширины */
.p-img-placeholder { 
    width: 100%; 
    margin: 25px 0; 
    background-color: #e0e0e0; 
    border: 1px solid #ccc; 
    padding: 15px; 
    text-align: center; 
    box-sizing: border-box;
}

/* Цитата эксперта (выделяем для скроллинга) */
.p-expert-quote { 
    background-color: #f9f9f9; 
    border-left: 4px solid #003366; 
    padding: 20px; 
    margin: 30px 0; 
    font-style: italic; 
    font-size: 18px; 
}

/* --- КНОПКИ ЗАКАЗА (ОГРОМНЫЕ ДЛЯ ПАЛЬЦЕВ) --- */
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }

.p-btn-call { 
    display: block; 
    text-align: center; 
    background-color: #cc0000; 
    color: #ffffff !important; 
    padding: 18px 10px; 
    text-decoration: none; 
    font-size: 20px; 
    font-weight: bold; 
    border-radius: 8px; 
    margin: 30px 0; 
    text-transform: uppercase; 
    animation: pulse 2s infinite; 
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
}

/* --- ЛЕНДИНГ (LAND.HTML) МОБИЛЬНАЯ ВЕРСИЯ --- */
.p-land-container { 
    max-width: 100%; 
    margin: 10px auto; 
    background-color: #ffffff; 
    padding: 20px; 
    text-align: center; 
}

.p-prod-title { font-size: 32px; color: #003366; margin-bottom: 5px; }

.p-order-box { 
    background-color: #fff8e1; 
    border: 2px dashed #d6ae37; 
    padding: 20px; 
    border-radius: 8px; 
}

.p-new-price { 
    color: #cc0000; 
    font-weight: bold; 
    font-size: 40px; 
    display: block; 
}

.p-form-input { 
    width: 100%; 
    padding: 15px; 
    margin: 10px 0; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    font-size: 16px; 
    box-sizing: border-box; /* Чтобы padding не раздувал ширину */
}

.p-form-submit { 
    width: 100%; 
    background-color: #28a745; 
    color: #ffffff; 
    padding: 18px; 
    border: none; 
    font-size: 20px; 
    font-weight: bold; 
    text-transform: uppercase; 
    border-radius: 6px; 
    cursor: pointer; 
}

/* Медиа-запрос для совсем маленьких экранов */
@media (max-width: 400px) {
    .p-headline { font-size: 22px; }
    .p-btn-call { font-size: 17px; }
}

/* --- СТИЛИ ДЛЯ БЛОКА ЭКСПЕРТА И ДОКАЗАТЕЛЬСТВ --- */

/* Контейнер для всего блока, чтобы отделить его от текста */
.p-expert-full-block {
    margin: 35px 0;
    overflow: hidden;
}

/* 1. Стили для портрета доктора Мендозы */
.p-dr-portrait-container {
    text-align: center;
    margin-bottom: -15px; /* Немного прижимаем цитату снизу */
}
.p-dr-portrait-img {
    width: 100%;
    max-width: 280px; /* Хороший размер для мобильного, чтобы не на весь экран */
    height: auto;
    border-radius: 4px; /* Легкое закругление в стиле Primicias */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Легкая тень для объема */
}
.p-dr-portrait-caption {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Твик для существующей цитаты (убираем лишние отступы) */
.p-expert-quote {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

/* 3. Ряд из 3-х маленьких фоточек (Flexbox) */
.p-triple-proof-row {
    display: flex;
    justify-content: space-between; /* Распределяем равномерно */
    gap: 10px; /* Отступ между фоточками */
    margin-top: 0;
    margin-bottom: 15px;
    padding: 0 5px; /* Небольшой отступ от краев контейнера */
}

.p-triple-item {
    flex: 1; /* Каждое фото занимает одинаковую ширину */
    aspect-ratio: 1 / 1; /* ГАРАНТИРУЕТ КВАДРАТНУЮ ФОРМУ */
    overflow: hidden; /* Обрезает лишнее, если фото не квадратное */
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #eee; /* Placeholder, пока нет фото */
}

.p-triple-proof-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Важно: картинка заполняет квадрат без искажений */
    display: block;
}

/* --- ОБНОВЛЕННАЯ ШАПКА DIARIO NACIONAL --- */

/* Полоса индикаторов */
.header-indicators {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    font-size: 11px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.ticker-wrapper {
    display: flex;
    gap: 20px;
    padding: 0 15px;
}
.ticker-item {
    color: #444;
    display: flex;
    align-items: center;
    gap: 4px;
}
.arrow-up { color: #28a745; font-size: 9px; }
.arrow-up.red { color: #dc3545; }
.arrow-down { color: #dc3545; font-size: 9px; }
.arrow-down.green { color: #28a745; }

/* Основной блок бренда */
.main-brand-header {
    background: #fff;
    padding: 15px 0 10px 0;
}
.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Логотип Diario Nacional */
.brand-logo a {
    text-align: center;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.logo-diario {
    font-family: 'Playfair Display', serif; /* Или Times New Roman */
    font-size: 32px;
    line-height: 0.8;
    color: #002d5a;
    font-style: italic;
    font-weight: 900;
}
.logo-nacional {
    font-family: 'Arial Black', sans-serif;
    font-size: 26px;
    text-transform: uppercase;
    color: #002d5a;
    letter-spacing: -1px;
    margin-top: 4px;
}
.logo-sub {
    font-size: 10px;
    text-transform: uppercase;
    color: #d6ae37; /* Золотой акцент */
    letter-spacing: 2px;
    font-weight: bold;
}

/* Кнопки и аватар */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}
.icon-search, .icon-bell {
    font-size: 18px;
    cursor: pointer;
    color: #555;
}
.user-avatar {
    width: 32px;
    height: 32px;
    background: #eee;
    border-radius: 50%;
    border: 1px solid #ddd;
}

/* Бургер меню */
.menu-burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    cursor: pointer;
}
.menu-burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #002d5a;
    border-radius: 2px;
}

/* Полоса с датой */
.header-date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 10px;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
}
.social-mini {
    display: flex;
    gap: 10px;
}
.soc-item {
    width: 20px;
    height: 20px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    color: #555;
    font-weight: bold;
}

/* Меню навигации */
.p-nav-bar {
    background: #002d5a;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.p-flex-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
}
.p-nav-item {
    color: #fff;
    padding: 12px 18px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}
.p-nav-item.active {
    background: #d6ae37;
    color: #002d5a;
}

/* --- СТИЛИ ДЛЯ LAND.HTML (ОФИЦИАЛЬНОСТЬ + FOMO) --- */

.badge-official {
    background: #d6ae37;
    color: #002d5a;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 3px;
}

.fomo-banner {
    display: flex;
    align-items: center;
    background: #cc0000;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}
.discount-badge {
    font-size: 28px;
    font-weight: 900;
    border-right: 2px solid rgba(255,255,255,0.3);
    padding-right: 15px;
    margin-right: 15px;
}
.fomo-text p { margin: 0; font-size: 12px; font-weight: bold; }
#timer { font-size: 18px; font-weight: bold; }

.product-presentation {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}
.product-img-box { flex: 1; min-width: 280px; text-align: center; }
.main-prod-img { width: 100%; max-width: 300px; }

.stock-status { font-size: 14px; font-weight: bold; margin-top: 15px; color: #cc0000; }
.stock-bar { height: 8px; background: #eee; border-radius: 4px; margin-top: 5px; overflow: hidden; }
.stock-fill { height: 100%; background: #cc0000; transition: width 1s ease; }

.benefits-list { flex: 1.5; min-width: 280px; text-align: left; }
.benefits-list h3 { color: #002d5a; margin-top: 0; }
.benefits-list ul { list-style: none; padding: 0; }
.benefits-list li { margin-bottom: 12px; font-size: 16px; border-bottom: 1px solid #f0f0f0; padding-bottom: 5px; }

/* Пакеты выбора */
.package-selector { margin: 20px 0; }
.pack-option {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.pack-option input { margin-right: 15px; transform: scale(1.5); }
.pack-option.recommended { border-color: #d6ae37; background: #fffcf0; }
.best-value {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #d6ae37;
    color: #002d5a;
    font-size: 10px;
    padding: 2px 8px;
    font-weight: bold;
    border-radius: 3px;
}
.pack-content b { display: block; font-size: 18px; }

.cod-notice {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.delivery-time { font-size: 12px; color: #888; margin-top: 15px; }
.footer-simple { text-align: center; padding: 40px 20px; background: #f4f4f4; margin-top: 50px; }