/* ==========================================
   STYLES.CSS - Trámites RD
   Archivo CSS global para todas las páginas
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0052A3;
    --secondary: #CE1126;
    --accent: #FFD700;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: var(--dark);
    background: var(--light);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

header {
    background: linear-gradient(135deg, var(--primary) 0%, #003d7a 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.logo::before {
    content: "🇩🇴 ";
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.hero .breadcrumb {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero .breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.hero .breadcrumb a:hover {
    opacity: 0.8;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.content-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.content-card h2 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
    font-size: 1.8em;
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card h3 {
    color: var(--secondary);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.content-card h4 {
    color: var(--primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.content-card p {
    margin-bottom: 15px;
    text-align: justify;
}

.content-card ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-card ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-card li {
    margin-bottom: 10px;
}

.content-card strong {
    color: var(--dark);
    font-weight: 600;
}

/* ==========================================
   INFO BOXES
   ========================================== */

.info-box {
    background: #e8f4fd;
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.info-box strong {
    color: var(--primary);
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.warning-box strong {
    color: #856404;
}

.success-box {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.success-box strong {
    color: #155724;
}

/* ==========================================
   STEPS / PROCESO
   ========================================== */

.steps {
    counter-reset: step;
    margin: 30px 0;
}

.step {
    counter-increment: step;
    margin-bottom: 25px;
    padding-left: 60px;
    position: relative;
}

.step::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.step h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.step p {
    margin-bottom: 10px;
}

/* ==========================================
   BUTTONS & CTA
   ========================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: var(--dark);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    margin: 5px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: #ffd000;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #003d7a;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 30px 0;
}

.cta-box h3 {
    margin-bottom: 15px;
    color: white;
}

.cta-box p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* ==========================================
   SIDEBAR
   ========================================== */

.sidebar {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.sidebar h3 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.sidebar ul {
    list-style: none;
    margin: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar a:hover {
    color: var(--primary);
}

/* ==========================================
   TABLES
   ========================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th {
    background: var(--primary);
    color: white;
    padding: 12px;
    text-align: left;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

table tr:hover {
    background: #f5f5f5;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
    background: var(--dark);
    color: white;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1em;
    }

    .content-card {
        padding: 20px;
    }

    .content-card h2 {
        font-size: 1.5em;
    }

    .content-card h3 {
        font-size: 1.2em;
    }

    .step {
        padding-left: 50px;
    }

    .step::before {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-box {
        padding: 20px;
    }

    .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    table {
        font-size: 0.9em;
    }

    table th, table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4em;
    }

    .hero h1 {
        font-size: 1.5em;
    }

    .content-card {
        padding: 15px;
    }

    .sidebar {
        padding: 20px;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card {
    animation: fadeIn 0.5s ease;
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    header, footer, .sidebar, .cta-box, .btn {
        display: none;
    }

    .content-card {
        box-shadow: none;
        padding: 0;
    }

    body {
        background: white;
    }
}