/* ============================================
   DIABETES ARTICLE - MEDICAL BLOG STYLES
   Laboratory Professional Design
   ============================================ */

/* CSS Variables - Design System */
:root {
    /* Primary Colors */
    --primary: #0f4b7e;
    --primary-light: #1a6bb5;
    --primary-dark: #0a3355;
    
    /* Secondary Colors - Green */
    --secondary: #008f43;
    --secondary-light: #00b555;
    --secondary-dark: #006b32;
    
    /* Accent - Gold */
    --accent: #ffd700;
    --accent-dark: #ccac00;
    
    /* Neutral Colors */
    --background: #f9fafb;
    --background-alt: #f3f4f6;
    --card-bg: #ffffff;
    --foreground: #1f2937;
    --foreground-muted: #6b7280;
    
    /* Status Colors */
    --destructive: #dc2626;
    --destructive-light: #fef2f2;
    --success: #16a34a;
    --success-light: #f0fdf4;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 6px 20px -5px rgba(15, 75, 126, 0.15);
    --shadow-card-hover: 0 12px 30px -5px rgba(15, 75, 126, 0.25);
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem 1rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: 0;
}

.hero-decorations {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    z-index: 1;
}

.decoration {
    position: absolute;
    border: 2px solid white;
    border-radius: 50%;
}

.decoration-1 {
    top: 40px;
    left: 40px;
    width: 120px;
    height: 120px;
}

.decoration-2 {
    bottom: 40px;
    right: 40px;
    width: 180px;
    height: 180px;
    border-width: 1px;
}

.decoration-3 {
    top: 50%;
    left: 25%;
    width: 80px;
    height: 80px;
    border-width: 1px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    animation: fadeIn 0.8s ease-out;
}

.hero-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}

.hero-icon {
    color: var(--secondary);
    width: 32px;
    height: 32px;
}

.hero-title-badge h1 {
    font-size: 3em;
    color: var(--secondary);
    margin: 0;
}

.hero-subtitle {
    font-size: 2em;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-text {
    
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto;
    line-height: 1.7;
    text-align: center;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--background-alt);
}

.section-title {
    font-size: 1.875rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-align: left;
}

.section-intro {
    
    color: var(--foreground-muted);
    margin-bottom: 2rem;
}

.intro-text {
    color: var(--foreground);
    line-height: 1.8;
}

/* ============================================
   BLOCKQUOTE
   ============================================ */
.blockquote-highlight {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2rem 2.5rem;
    border-radius: var(--radius-xl);
    margin: 2rem 0;
    text-align: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
}

.quote-mark {
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.5;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ============================================
   CARDS
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.content-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 2px solid rgba(0, 143, 67, 0.15);
    transition: var(--transition);
    margin-bottom: 10px;
    margin-top: 10px;
}

.content-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.mb-6 {
    margin-bottom: 1.5rem;
}

/* Type Cards */
.type-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 2px solid rgba(0, 143, 67, 0.15);
    transition: var(--transition);
}

.type-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.type-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.type-badge {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.type-badge-1 {
    background: var(--primary);
}

.type-badge-2 {
    background: var(--secondary);
}

.type-info h3 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.type-subtitle {
    font-size: 1rem;
    color: var(--foreground-muted);
}

.type-card p {
    color: rgba(31, 41, 55, 0.8);
    margin: 0;
}

/* ============================================
   SYMPTOMS
   ============================================ */
.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem 1rem;
}

.symptom-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.symptom-item:hover {
    background: white;
}

.symptom-icon {
    color: var(--destructive);
    flex-shrink: 0;
}

.symptom-item span {
    color: var(--foreground);
}

/* ============================================
   RISK FACTORS
   ============================================ */
.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem 1.5rem;
}

.risk-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 2px solid rgba(0, 143, 67, 0.15);
    transition: var(--transition);
}

.risk-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.risk-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.risk-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.risk-icon-warning {
    background: var(--destructive-light);
    color: var(--destructive);
}

.risk-icon-success {
    background: var(--success-light);
    color: var(--success);
}

.risk-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
}

.risk-badge-warning {
    background: var(--destructive-light);
    color: var(--destructive);
}

.risk-badge-success {
    background: var(--success-light);
    color: var(--secondary);
}

.risk-list {
    list-style: none;
}

.risk-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: rgba(31, 41, 55, 0.8);
}

.risk-x {
    color: var(--destructive);
    font-weight: 600;
}

.risk-check {
    color: var(--secondary);
    font-weight: 600;
}

/* ============================================
   METABOLIC SYNDROME
   ============================================ */
.metabolic-card {
    background: linear-gradient(135deg, rgba(15, 75, 126, 0.05) 0%, rgba(0, 143, 67, 0.05) 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 2px solid rgba(0, 143, 67, 0.15);
}

.metabolic-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.metabolic-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--destructive-light);
    color: var(--destructive);
    border-radius: 9999px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.metabolic-header p {
    color: rgba(31, 41, 55, 0.8);
    text-align: center;
    margin: 0;
}

.metabolic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.metabolic-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.metabolic-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 75, 126, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metabolic-item span {
    font-weight: 500;
    color: var(--foreground);
}

/* ============================================
   INSULIN CARDS
   ============================================ */
.insulin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.insulin-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border-left: 4px solid;
}

.insulin-card-type1 {
    border-left-color: var(--primary);
}

.insulin-card-type2 {
    border-left-color: var(--secondary);
}

.insulin-card h4 {
    margin-bottom: 1rem;
}

.insulin-card-type1 h4 {
    color: var(--primary);
}

.insulin-card-type2 h4 {
    color: var(--secondary);
}

.insulin-card p {
    color: rgba(31, 41, 55, 0.8);
    margin: 0;
}

/* ============================================
   PREVENTION
   ============================================ */
.prevention-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem 1rem;
}

.prevention-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    border: 2px solid rgba(0, 143, 67, 0.15);
    transition: var(--transition);
}

.prevention-item:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.prevention-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(0, 143, 67, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prevention-item p {
    color: rgba(31, 41, 55, 0.8);
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 1rem;
    text-align: center;
}

.cta-section h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    
    border-radius: 9999px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary);
    padding: 2rem 1rem;
    text-align: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
    text-align: center;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero {
        min-height: 400px;
    }
    
    .hero-title-badge {
        padding: 0.75rem 1.5rem;
    }
    
    .hero-title-badge h1 {
        font-size: 1.75rem;
    }
    
    
    .section {
        padding: 2.5rem 0;
    }
    
    
    .blockquote-highlight {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .content-card,
    .type-card,
    .risk-card,
    .insulin-card,
    .prevention-item {
        padding: 1.5rem;
    }
    
    
    .whatsapp-button {
        padding: 0.875rem 1.5rem;
    }
    
    .symptoms-grid,
    .metabolic-grid,
    .prevention-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    article .container {
        padding: 30px;
    }
    
    .type-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .risk-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
article img{
    width: 100%;
    border-radius: 20px;
}
.risk-list-icons {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.risk-list-icons li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.risk-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.1); /* rojo clínico suave */
  color: #dc2626;
}

.risk-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
