/* ===================================
   VARIABLES Y RESET
   =================================== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    --info-color: #3b82f6;

    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* ===================================
   UTILIDADES
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* ===================================
   HEADER
   =================================== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.header i {
    margin-right: 0.5rem;
}

/* ===================================
   NAVIGATION
   =================================== */
.nav {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 100;
}

@media (min-width: 769px) {
    .nav {
        position: sticky;
        top: 0;
    }
}

.nav .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.nav-link.cta {
    background: var(--primary-color);
    color: white;
}

.nav-link.cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===================================
   SECTIONS
   =================================== */
.section {
    padding: 3rem 0;
}

.section.bg-light {
    background: var(--bg-light);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--primary-color);
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.subsection {
    margin-top: 2rem;
}

.subsection h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===================================
   CARDS
   =================================== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card h3, .card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.card-danger {
    border-left: 4px solid var(--danger-color);
}

.card-highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.card-highlight .big-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-highlight .big-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.card-highlight p {
    opacity: 0.8;
}

/* ===================================
   ALERTS
   =================================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert-warning {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

.alert-warning i {
    display: none;
}

.alert i {
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.alert-info {
    background: #dbeafe;
    border-left: 4px solid var(--info-color);
    color: #1e3a8a;
}

.alert-success {
    background: #d1fae5;
    border-left: 4px solid var(--success-color);
    color: #065f46;
}

.alert-warning {
    background: #fef3c7;
    border-left: 4px solid var(--warning-color);
    color: #92400e;
}

.alert-danger {
    background: #fee2e2;
    border-left: 4px solid var(--danger-color);
    color: #991b1b;
}

.alert ol, .alert ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

/* ===================================
   LISTS
   =================================== */
.list-check {
    list-style: none;
}

.list-check li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.list-check li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.list-icon {
    list-style: none;
}

.list-icon li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.list-icon i {
    color: var(--primary-color);
}

/* ===================================
   COMPARISON TABLE
   =================================== */
.comparison-table {
    overflow-x: auto;
    margin: 1rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.comparison-table tbody tr:hover {
    background: var(--bg-light);
}

.comparison-table tbody tr.current-business {
    background: linear-gradient(90deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid var(--primary-color);
}

.comparison-table tbody tr.current-business:hover {
    background: linear-gradient(90deg, #bfdbfe 0%, #93c5fd 100%);
}

.comparison-table tbody tr.current-business td {
    font-weight: 600;
    color: var(--primary-dark);
}

.comparison-table .advantage {
    color: var(--success-color);
    font-weight: 600;
}

/* ===================================
   PROBLEMS GRID
   =================================== */
.problems-grid {
    display: grid;
    gap: 1rem;
}

.problem-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #fef2f2;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--danger-color);
}

.problem-item i {
    color: var(--danger-color);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.problem-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.problem-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===================================
   STATS GRID
   =================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ===================================
   WEEKLY CHART
   =================================== */
.weekly-chart {
    margin-top: 1rem;
}

.day-bar {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.bar-label {
    width: 50px;
    font-weight: 600;
    color: var(--text-primary);
}

.bar-container {
    flex: 1;
    position: relative;
    height: 30px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
}

.bar-value {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--text-primary);
}

/* ===================================
   COST TABLE
   =================================== */
.cost-table {
    width: 100%;
    margin: 1rem 0;
}

.cost-table tr {
    border-bottom: 1px solid var(--border-color);
}

.cost-table td {
    padding: 0.75rem 0;
}

.cost-table .amount {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

.cost-table .total-row {
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.cost-table .total-row td {
    padding: 1rem 0;
    font-size: 1.1rem;
}

/* ===================================
   FINANCIAL SUMMARY
   =================================== */
.financial-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.financial-item {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.financial-item.positive {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid var(--success-color);
}

.financial-item.negative {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid var(--danger-color);
}

.financial-item.result {
    font-size: 1.1rem;
}

.financial-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.financial-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.financial-item.positive .financial-value {
    color: var(--success-color);
}

.financial-item.negative .financial-value {
    color: var(--danger-color);
}

.financial-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===================================
   GAP ANALYSIS
   =================================== */
.gap-analysis {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.gap-analysis h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gap-bars {
    margin-bottom: 1rem;
}

.gap-bar {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.gap-label {
    width: 100px;
    font-weight: 600;
    color: var(--text-primary);
}

.gap-container {
    flex: 1;
    position: relative;
}

.gap-fill {
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    transition: width 1s ease;
}

.gap-fill.current {
    background: var(--danger-color);
}

.gap-fill.breakeven {
    background: var(--warning-color);
}

.gap-fill.profitable {
    background: var(--success-color);
}

.gap-note {
    color: var(--text-secondary);
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

/* ===================================
   IMPROVEMENTS
   =================================== */
#mejoras .container {
    position: relative;
}

#mejoras .container::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 0;
    right: 0;
    bottom: -2rem;
    background-image: url('images/background-pattern.png');
    background-size: 400px 400px;
    background-repeat: repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

#mejoras .container > * {
    position: relative;
    z-index: 1;
}

.improvements-grid-featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

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

@media (max-width: 768px) {
    .improvements-grid-featured {
        grid-template-columns: 1fr;
    }
}

.improvements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.improvement-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--info-color);
}

.improvement-card.priority-high {
    border-top-color: var(--danger-color);
}

.improvement-card.priority-medium {
    border-top-color: var(--warning-color);
}

.improvement-card.priority-low {
    border-top-color: var(--info-color);
}

.improvement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.improvement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.improvement-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--danger-color);
    color: white;
}

.priority-badge.medium {
    background: var(--warning-color);
}

.priority-badge.low {
    background: var(--info-color);
}

.improvement-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.improvement-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.improvement-benefits {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.improvement-benefits strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.improvement-benefits ul {
    margin-left: 1.5rem;
}

/* ===================================
   BACKGROUND PATTERN FOR SECTIONS
   =================================== */
.section.bg-light {
    position: relative;
    overflow: hidden;
}

.section.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/background-pattern.png');
    background-size: 500px 500px;
    background-repeat: repeat;
    opacity: 0.015;
    pointer-events: none;
    z-index: 0;
}

.section.bg-light > .container {
    position: relative;
    z-index: 1;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/background-pattern.png');
    background-size: 600px 600px;
    background-repeat: repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.cta-section > .container {
    position: relative;
    z-index: 1;
}

.cta-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.cta-box i {
    color: white;
    margin-bottom: 1rem;
}

.cta-box h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    display: inline-block;
}

.cta-features li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.cta-features i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   PROS AND CONS
   =================================== */
.card-pros {
    border-left: 4px solid var(--success-color);
}

.card-cons {
    border-left: 4px solid var(--danger-color);
}

.pros-list,
.cons-list {
    list-style: none;
}

.pros-list li,
.cons-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pros-list li:last-child,
.cons-list li:last-child {
    border-bottom: none;
}

.pros-list strong,
.cons-list strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.pros-list p,
.cons-list p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===================================
   CONCLUSION
   =================================== */
.conclusion-box {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.conclusion-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.conclusion-header i {
    font-size: 2rem;
}

.conclusion-header h3 {
    margin: 0;
    color: white;
}

.conclusion-content {
    padding: 2rem;
}

.conclusion-content h4 {
    color: var(--danger-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.conclusion-section {
    margin-bottom: 2rem;
}

.conclusion-section h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.conclusion-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.conclusion-section ul {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.conclusion-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.risk-score {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.risk-meter {
    max-width: 600px;
    margin: 0 auto;
}

.risk-label {
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.risk-bar {
    position: relative;
    height: 40px;
    background: linear-gradient(90deg,
        var(--success-color) 0%,
        var(--warning-color) 50%,
        var(--danger-color) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.risk-fill {
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.risk-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.risk-scale span {
    color: var(--text-secondary);
}

.risk-scale span.active {
    color: var(--danger-color);
    font-weight: 600;
}

/* ===================================
   QUESTIONS
   =================================== */
.questions-intro {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border-left: 4px solid var(--warning-color);
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.question-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.question-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.question-content {
    flex: 1;
}

.question-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.question-why {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.question-details {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.question-details li {
    margin-bottom: 0.5rem;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin: 0.5rem 0;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    text-decoration: underline;
}

/* ===================================
   IMAGES
   =================================== */
.hero-image-section {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    background: var(--bg-light);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

.section-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 2rem auto;
    display: block;
    transition: var(--transition);
}

.section-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.improvement-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

/* ===================================
   ICONOS DECORATIVOS
   =================================== */
.icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 2rem auto;
    transition: var(--transition);
}

.icon-placeholder.section-icon {
    width: 100%;
    max-width: 900px;
    height: 300px;
}

.icon-placeholder.improvement-icon {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
}

.icon-placeholder i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.9);
}

.icon-placeholder.improvement-icon i {
    font-size: 5rem;
}

.icon-placeholder:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.icon-placeholder.success-gradient {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
}

.icon-placeholder.warning-gradient {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
}

.icon-placeholder.info-gradient {
    background: linear-gradient(135deg, var(--info-color) 0%, var(--primary-color) 100%);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    /* Prevenir scroll horizontal */
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 1rem;
    }

    .header {
        padding: 2rem 0;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header .subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .nav .container {
        flex-direction: column;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.85rem;
        overflow-x: auto;
    }

    .cta-box {
        padding: 2rem 1rem;
    }

    .improvements-grid {
        grid-template-columns: 1fr;
    }

    .question-item {
        flex-direction: column;
    }

    /* Asegurar que las imágenes sean responsive */
    .section-image,
    .hero-image,
    .improvement-image {
        width: 100%;
        height: auto;
    }

    /* Ajustar cards en móvil */
    .card {
        padding: 1rem;
    }

    /* Ajustar stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Mejorar tablas en móvil */
    .cost-table {
        font-size: 0.9rem;
    }
}

/* Media query para pantallas muy pequeñas */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .header .subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card-highlight .big-number {
        font-size: 2.5rem;
    }

    .financial-value {
        font-size: 1.5rem;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .nav,
    .cta-section {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}
