/* Additional CSS styles for proceso-compra.html and compatibility */
/* This file extends the main styles.css for specific pages */

/* Import base styles */
@import url('styles.css');

/* Page-specific overrides and additions */
.page-header {
    background: linear-gradient(135deg, #cc1b2f, #d4344a);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.page-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    filter: invert(1);
}

/* Process section specific styles */
.process-section {
    background: #f8f9fa;
}

.process-steps {
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #cc1b2f;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.step-number {
    background: linear-gradient(135deg, #cc1b2f, #d4344a);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(204, 27, 47, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: #cc1b2f;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.step-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.step-content li {
    margin-bottom: 0.75rem;
    color: #666666;
    line-height: 1.6;
}

.step-content strong {
    color: #333333;
}

/* Costs section */
.costs-section {
    background: white;
}

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

.cost-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.cost-item:hover {
    border-color: #cc1b2f;
    transform: translateY(-3px);
}

.cost-item h3 {
    color: #cc1b2f;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.cost-item ul {
    list-style: none;
    padding: 0;
}

.cost-item li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cost-item li:last-child {
    border-bottom: none;
}

/* Tips section */
.tips-section {
    background: #f8f9fa;
}

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

.tip-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.tip-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #cc1b2f, #d4344a);
    border-radius: 15px 15px 0 0;
}

.tip-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.tip-item h3 {
    color: #cc1b2f;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Navigation updates */
.nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #cc1b2f;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #cc1b2f;
    transition: all 0.3s ease;
}

/* Responsive navigation */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        gap: 1rem;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .step-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .costs-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* Additional utility classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.p-2 {
    padding: 2rem;
}

/* Enhanced button styles */
.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    min-width: 200px;
}

/* CTA section enhancements */
.cta-section {
    background: linear-gradient(135deg, #cc1b2f, #d4344a);
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-buttons .btn-outline {
    border-color: white;
    color: white;
    background: transparent;
}

.cta-buttons .btn-outline:hover {
    background: white;
    color: #cc1b2f;
}

/* Enhanced shadow effects */
.card-shadow {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.card-shadow:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
.nav-link:focus,
.btn:focus {
    outline: 3px solid #cc1b2f;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .nav,
    .cta-section,
    .btn {
        display: none;
    }

    .step-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
