/* Reset y estilos base */
        :root {
            --primary-color: #2c3e50;
            --secondary-color: #3498db;
            --accent-color: #e74c3c;
            --light-color: #ecf0f1;
            --dark-color: #2c3e50;
            --text-color: #333;
            --text-light: #7f8c8d;
            --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
            --card-bg: #ffffff;
            --card-border: #e0e0e0;
            --primary-blue: #2c3e50;
            --secondary-blue: #3498db;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: #f9f9f9;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .container-fluid {
            width: 100%;
            padding: 0 20px;
        }
        
        /* Encabezado */
        .header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: #fff;
            padding: 100px 0;
            text-align: left;
            min-height: 80vh;
            display: flex;
            align-items: center;
        }
        
        .header .card {
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            margin: 10px;
        }
        
        .header-title {
            font-size: 2.8rem;
            margin-bottom: 20px;
            font-weight: 700;
            color: #fff;
            line-height: 1.2;
        }
        
        .header-subtitle {
            font-size: 1.4rem;
            margin-bottom: 30px;
            font-weight: 300;
            opacity: 0.9;
            line-height: 1.6;
        }
        
        .header-buttons {
            margin-top: 30px;
        }

        .img-center {
            margin: 0 auto;
        }
        
        .btn-primary {
            background-color: #fff;
            color: var(--primary-color);
            padding: 12px 35px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            display: inline-block;
            transition: all 0.3s ease;
            border: 2px solid #fff;
        }
        
        .btn-primary:hover {
            background-color: transparent;
            color: #fff;
            transform: translateY(-2px);
        }

        .header-logo{
            max-width: 100%;
        }
        
        .header-logo-container {
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 30px;
            border-radius: 10px;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            margin: 10px;
        }
        
        /* Secciones */
        .section {
            padding: 60px 0;
        }
        
        .section-title {
            text-align: center;
            font-size: 2.2rem;
            margin-bottom: 50px;
            color: var(--primary-color);
            position: relative;
            padding-bottom: 15px;
        }
        
        .section-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: var(--secondary-color);
        }
        
        .section-subtitle {
            text-align: center;
            font-size: 1.5rem;
            margin-bottom: 30px;
            color: var(--text-light);
        }
        
        /* Tarjetas */
        .card {
            background: white;
            border-radius: 8px;
            box-shadow: var(--box-shadow);
            padding: 30px;
            transition: var(--transition);
            height: 100%;
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        
        .card-title {
            font-size: 1.5rem;
            color: var(--primary-color);
            margin-bottom: 15px;
        }
        
        .card-text {
            color: var(--text-light);
            margin-bottom: 0;
        }
        
        /* Grid */
        .row {
            display: flex;
            flex-wrap: wrap;
            margin: 0 -15px;
        }
        
        .col {
            padding: 0 15px;
            flex: 1 0 0;
        }
        
        .col-12 { width: 100%; }
        .col-md-6 { width: 50%; }
        .col-lg-3 { width: 25%; }
        .col-lg-4 { width: 33.333%; }
        
        /* Botones */
        .btn {
            display: inline-block;
            background-color: var(--secondary-color);
            color: white;
            padding: 12px 30px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
            border: none;
            cursor: pointer;
        }
        
        .btn:hover {
            background-color: var(--primary-color);
            transform: translateY(-2px);
        }
        
        .btn-outline {
            background: transparent;
            border: 2px solid var(--secondary-color);
            color: var(--secondary-color);
        }
        
        .btn-outline:hover {
            background: var(--secondary-color);
            color: white;
        }
        
        /* Iconos */
        .icon {
            font-size: 2.5rem;
            color: var(--secondary-color);
            margin-bottom: 20px;
        }
        
        /* Utilidades */
        .align-center {
            text-align: center;
        }
        
        .align-left {
            text-align: left;
        }
        
        .pt-3 {
            padding-top: 1.5rem;
        }
        
        .pt-4 {
            padding-top: 2rem;
        }
        
        .pt-5 {
            padding-top: 3rem;
        }
        
        .pb-3 {
            padding-bottom: 1.5rem;
        }
        
        .pb-4 {
            padding-bottom: 2rem;
        }
        
        .pb-5 {
            padding-bottom: 3rem;
        }
        
        .mb-3 {
            margin-bottom: 1.5rem;
        }
        
        .mb-4 {
            margin-bottom: 2rem;
        }
        
        .mb-5 {
            margin-bottom: 3rem;
        }
        
        .justify-content-center {
            justify-content: center;
        }
        
        .flex-row-reverse {
            flex-direction: row-reverse;
        }
        
        .text-center {
            text-align: center;
        }
        
        .text-white {
            color: white;
        }
        
        /* Backgrounds */
        .bg-light {
            background-color: #f8f9fa;
        }
        
        .bg-primary {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
        }
        
        /* Typography */
        
        .mbr-section-title {
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: var(--primary-color);
        }
        
        .mbr-section-subtitle {
            font-size: 1.3rem;
            color: var(--text-light);
            margin-bottom: 1rem;
        }
        
        .mbr-card-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 0.75rem;
        }
        
        .mbr-text {
            font-size: 1rem;
            line-height: 1.6;
            color: var(--text-color);
        }
        
        .mbr-light {
            font-weight: 300;
        }
        
        .mbr-bold {
            font-weight: 700;
        }
        
        .display-1 {
            font-size: 3rem;
        }
        
        .display-2 {
            font-size: 2.2rem;
        }
        
        .display-4 {
            font-size: 1.1rem;
        }
        
        .display-5 {
            font-size: 1.3rem;
        }
        
        .display-7 {
            font-size: 0.9rem;
        }
        
        /* Underline decorativa */
        .underline {
            display: flex;
            justify-content: center;
            margin: 20px 0 30px;
        }
        
        .underline .line {
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
            border-radius: 2px;
        }
        
        /* Cards mejoradas */
        .card-wrapper {
            height: 100%;
        }
        
        .card-box {
            margin-bottom: 1rem;
        }
        
        .card-subtitle {
            font-size: 0.95rem;
            color: var(--text-light);
            margin-bottom: 0.5rem;
        }
        
        .card-wrapper.inner {
            padding-top: 1rem;
            border-top: 2px solid #f0f0f0;
        }
        
        /* Process Icons */
        .media-container-row {
            display: flex;
            flex-wrap: wrap;
            margin: 0 -15px;
        }
        
        .main-wrapper {
            padding-top: 3rem;
        }
        
        .icon-main {
            padding: 0 15px;
            margin-bottom: 30px;
        }
        
        .process-icon {
            text-align: center;
            padding: 30px 20px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            height: 100%;
        }
        
        .process-icon:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.12);
        }
        
        .icon-container {
            display: inline-block;
            position: relative;
            margin: 20px;
        }
        
        .icon-wrapper {
            display: inline-block;
            width: 70px;
            height: 70px;
            line-height: 70px;
            border-radius: 50%;
            font-size: 2rem;
            color: white;
        }
        
        .icon-number {
            position: absolute;
            top: -30px;
            right: -20px;
            width: 50px;
            height: 50px;
            line-height: 50px;
            border-radius: 50%;
            color: white;
            font-size: 1.5rem;
            font-weight: 700;
        }
        
        .subicon-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 15px;
            min-height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .subicon-text {
            font-size: 1rem;
            color: var(--text-light);
            line-height: 1.6;
        }
        
        /* Blockquote */
        blockquote {
            font-size: 1.5rem;
            line-height: 1.8;
            font-style: italic;
            position: relative;
            padding: 30px 0;
            border: none;
        }
        
        .quote-icon {
            font-size: 5rem;
            opacity: 0.2;
            position: absolute;
            top: -20px;
            left: -10px;
        }
        
        /* Obligation Section */
        .obligation-section {
            padding: 80px 0;
            background-color: #f5f5f5;
        }
        
        .obligation-section .section-title {
            font-size: 2rem;
            font-weight: 300;
            color: #333;
            margin-bottom: 50px;
        }
        
        .obligation-section .section-title strong {
            font-weight: 700;
        }
        
        .obligation-section .row.g-4 {
            display: flex;
            align-items: flex-start;
        }
        
        .obligation-cards-wrapper {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .obligation-cards-wrapper-row{
            width: 90%;
            display: flex;
            flex-direction: row;
            gap: 20px;
            margin: 0 auto;
        }
        
        .obligation-card {
            width: 100%;
            background: white;
            padding: 25px 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
            text-align: left;
            transition: all 0.3s ease;
        }
        
        .obligation-card:hover {
            box-shadow: 0 4px 15px rgba(0,0,0,0.12);
        }
        
        .obligation-card-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: #333;
            margin-bottom: 5px;
            line-height: 1.3;
        }
        
        .obligation-card-subtitle {
            font-size: 0.95rem;
            color: #666;
            font-style: normal;
            margin: 0;
        }
        
        .obligation-text-wrapper {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .obligation-text {
            background: transparent;
            padding: 0;
            border-radius: 0;
            box-shadow: none;
            padding: 0 20px;
        }
        
        .obligation-text::before {
            content: '';
            display: block;
            width: 100%;
            height: 1px;
            background: repeating-linear-gradient(
                to right,
                #999 0,
                #999 5px,
                transparent 5px,
                transparent 10px
            );
            margin-bottom: 20px;
        }
        
        .obligation-text::after {
            content: '';
            display: block;
            width: 100%;
            height: 1px;
            background: repeating-linear-gradient(
                to right,
                #999 0,
                #999 5px,
                transparent 5px,
                transparent 10px
            );
            margin-top: 20px;
        }
        
        .obligation-text p {
            font-size: 1rem;
            line-height: 1.7;
            color: #555;
            margin: 0;
        }
        
        /* Content8 Section */
        .content8 {
            padding: 60px 0;
            background-color: white;
        }
        
        /* Checkboxes personalizados */
        .container2 {
            display: block;
            position: relative;
            padding-left: 45px;
            margin-bottom: 20px;
            cursor: pointer;
            font-size: 1rem;
            user-select: none;
        }
        
        .container2 input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
        }
        
        .checkmark {
            position: absolute;
            top: 0;
            left: 0;
            height: 28px;
            width: 28px;
            background-color: #f0f0f0;
            border-radius: 5px;
            transition: all 0.3s ease;
        }
        
        .container2:hover input ~ .checkmark {
            background-color: #e0e0e0;
        }
        
        .container2 input:checked ~ .checkmark {
            background-color: var(--secondary-color);
        }
        
        .checkmark:after {
            content: "";
            position: absolute;
            display: none;
        }
        
        .container2 input:checked ~ .checkmark:after {
            display: block;
        }
        
        .container2 .checkmark:after {
            left: 10px;
            top: 6px;
            width: 6px;
            height: 12px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }
        
        /* Content1 Section */
        .content1 {
            padding: 60px 0;
        }
        
        .content1:nth-of-type(even) {
            background-color: #f8f9fa;
        }
        
        /* Content9 Section */
        .content9 {
            padding: 60px 0;
            background-color: white;
        }
        
        .content9 .title {
            text-align: center;
        }
        
        /* Content01 Section */
        .content01-s {
            padding: 80px 0;
            background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 152, 219, 0.95));
            color: white;
            position: relative;
        }
        
        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.1);
            z-index: 0;
        }
        
        .content01-s .container {
            position: relative;
            z-index: 1;
        }
        
        .content01-s .mbr-section-title,
        .content01-s .mbr-text,
        .content01-s .mbr-section-subtitle {
            color: white;
        }
        
        /* Estilos para secciones article04 */
        .article04.legalm5 {
            background-color: #e8e8e8;
            padding: 60px 0;
        }
        
        .article04 .content-wrapper {
            max-width: 800px;
        }
        
        .article04 .list-wrapper {
            padding: 0;
        }
        
        .article04 .mbr-list-title {
            font-size: 2rem;
            color: #333;
            margin-bottom: 30px;
            font-weight: 300;
            line-height: 1.4;
        }
        
        .article04 .mbr-list-title strong {
            font-weight: 700;
        }
        
        .article04 .list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .article04 .list .item-wrap {
            position: relative;
            padding-left: 35px;
            margin-bottom: 20px;
            font-size: 1.1rem;
            line-height: 1.6;
            color: #555;
        }
        
        .article04 .list .item-wrap:before {
            content: '✓';
            position: absolute;
            left: 0;
            top: 0;
            color: #d4a574;
            font-size: 1.3rem;
            font-weight: bold;
        }
        
        .article04 .list .item-wrap strong {
            color: #333;
            font-weight: 600;
        }
        
        /* Parallax Section */
        .parallax-section {
            position: relative;
            padding: 100px 0;
            color: white;
            overflow: hidden;
        }
        .parallax-section .row {
            width: 90%;
            border-radius: 3rem;
            height: 100%;
            background: #3e97d1;
            margin: 0 auto;
            padding:10px;
        }
        
        .mbr-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            z-index: 1;
        }
        
        .parallax-section .container-fluid {
            position: relative;
            z-index: 2;
        }
        
        .parallax-section .mbr-section-title,
        .parallax-section .mbr-section-subtitle,
        .parallax-section .list {
            color: #f1f1f1;
        }
        
        .parallax-section .list {
            list-style: none;
            padding: 0;
        }
        
        .parallax-section .list .item-wrap {
            position: relative;
            padding-left: 30px;
            margin-bottom: 15px;
            font-size: 1.1rem;
        }
        
        .parallax-section .list .item-wrap:before {
            content: '✓';
            position: absolute;
            left: 0;
            color: #d4a574;
            font-weight: bold;
        }
        
        /* Footer */
        #footer2-5 {
            background-color: var(--primary-color);
            color: white;
            text-align: center;
            padding: 30px 0;
            font-size: 1rem;
        }
        
        #footer2-5 p {
            margin: 0;
            padding:5px;

        }
        #footer2-5 a {
            color: #78c2f4;
            
        }
        
        /* Grid Responsive */
        .g-4 {
            gap: 1.5rem;
        }
        
        .col-lg-5 {
            width: 41.666%;
        }
        
        .col-lg-7 {
            width: 58.333%;
        }
        
        .col-lg-8 {
            width: 66.666%;
        }
        
        .col-lg-9 {
            width: 75%;
        }
        
        .col-lg-10 {
            width: 83.333%;
        }
        
        .col-lg-12 {
            width: 100%;
        }
        
        .col-md-3 {
            width: 25%;
        }
        
        .col-md-4 {
            width: 33.333%;
        }
        
        .col-md-5 {
            width: 41.666%;
        }
        
        .col-md-6 {
            width: 50%;
        }
        
        .col-md-7 {
            width: 58.333%;
        }
        
        .col-md-8 {
            width: 66.666%;
        }
        
        .col-md-12 {
            width: 100%;
        }
        
        .col-8 {
            width: 66.666%;
        }
        
        .row-item {
            margin-bottom: 30px;
        }
        
        /* Smooth Scroll */
        html {
            scroll-behavior: smooth;
        }

    .implica-section {
        background-color: #f5f5f5;
        padding: 80px 0;
    }
    .implica-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
    }
    .implica-title {
        text-align: center;
        font-size: 36px;
        color: #333;
        margin-bottom: 60px;
        font-weight: 400;
    }
    .implica-title strong {
        color: #2e7d32;
        font-weight: 700;
    }
    .implica-row {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -15px;
    }
    .implica-col {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 15px;
        margin-bottom: 30px;
    }
    .implica-item {
        background: white;
        border-radius: 10px;
        padding: 40px 30px;
        height: 100%;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        position: relative;
        overflow: hidden;
    }
    .implica-number {
        font-size: 60px;
        font-weight: 700;
        color: #e8f5e9;
        position: absolute;
        top: 10px;
        right: 20px;
        line-height: 1;
        z-index: 1;
    }
    .implica-item h3 {
        font-size: 24px;
        color: #2e7d32;
        margin-bottom: 20px;
        position: relative;
        z-index: 2;
    }
    .implica-item p {
        font-size: 16px;
        color: #555;
        line-height: 1.6;
        margin-bottom: 0;
        position: relative;
        z-index: 2;
    }
    .modalidad-item {
        margin-top: 15px;
        padding-left: 15px;
        border-left: 3px solid #2e7d32;
    }
    .modalidad-item strong {
        color: #2e7d32;
    }
    @media (max-width: 768px) {
        .implica-col {
            flex: 0 0 100%;
            max-width: 100%;
        }
    }

        /* Estilos para secciones de modalidades */
        .modalidades-header-section {
            padding: 60px 0 40px;
            background-color: #ffffff;
        }

        .modalidades-main-title {
            font-size: 2rem;
            font-weight: 400;
            color: #333;
            text-align: center;
            margin-bottom: 15px;
            letter-spacing: 0.5px;
        }

        .modalidades-main-subtitle {
            font-size: 1rem;
            color: #666;
            text-align: center;
            margin-bottom: 0;
        }

        .modalidad-section {
            padding: 60px 0;
            position: relative;
        }

        .modalidad-verifactu {
            background: linear-gradient(135deg, #b3e5fc 0%, #e1bee7 100%);
        }

        .modalidad-no-verifactu {
            background: linear-gradient(135deg, #e1bee7 0%, #b3e5fc 100%);
        }

        .modalidad-title {
            font-size: 1.4rem;
            font-weight: 400;
            color: #333;
            text-align: left;
            margin-bottom: 30px;
            padding-left: 15px;
        }

        .modalidad-title strong {
            font-weight: 700;
        }

        .modalidad-cards-row {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: flex-start;
        }

        .modalidad-cards-row > [class*="col-"] {
            padding: 0;
            flex: 0 0 25%;
            max-width: 22%;
            min-width: 200px;
        }

        .modalidad-card {
            background: #ffffff;
            border-radius: 20px;
            padding: 25px 20px;
            height: 100%;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            min-height: 240px;
        }

        .modalidad-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        }

        .modalidad-card-header {
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #e0e0e0;
        }

        .modalidad-card-subtitle {
            font-size: 0.85rem;
            color: #666;
            margin-bottom: 5px;
            line-height: 1.3;
            font-weight: 400;
        }

        .modalidad-card-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: #333;
            margin: 0;
            line-height: 1.2;
        }

        .modalidad-card-body {
            flex: 1;
            display: flex;
            align-items: center;
        }

        .modalidad-card-text {
            font-size: 0.9rem;
            color: #555;
            line-height: 1.6;
            margin: 0;
        }

        /* Responsive para modalidades */
        @media (max-width: 1200px) {
            .modalidad-cards-row > [class*="col-"] {
                flex: 0 0 280px;
                max-width: 280px;
            }
        }

        @media (max-width: 768px) {
            .modalidades-main-title {
                font-size: 1.5rem;
            }

            .modalidad-title {
                font-size: 1.2rem;
                text-align: center;
                padding-left: 0;
            }

            .modalidad-cards-row {
                flex-direction: column;
            }

            .modalidad-cards-row > [class*="col-"] {
                flex: 0 0 100%;
                max-width: 100%;
                min-width: 100%;
            }

            .modalidad-card {
                min-height: auto;
            }

            .modalidad-section {
                padding: 40px 0;
            }
        }

        /* Animaciones */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .card, .process-icon, .obligation-card {
            animation: fadeInUp 0.6s ease-out;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10 {
                width: 100%;
            }
            
            .icon-main {
                width: 50%;
            }
        }
        
        @media (max-width: 768px) {
            .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-12 {
                width: 100%;
            }
            
            .icon-main {
                width: 100%;
            }
            
            .header-title {
                font-size: 2rem;
            }
            
            .section-title, .mbr-section-title {
                font-size: 1.8rem;
            }
            
            .article04 .mbr-list-title {
                font-size: 1.5rem;
            }
            
            .article04 .list .item-wrap {
                font-size: 1rem;
            }
            
            .display-1 {
                font-size: 2rem;
            }
            
            .display-2 {
                font-size: 1.6rem;
            }
            
            blockquote {
                font-size: 1.2rem;
            }
            
            .subicon-title {
                min-height: auto;
                font-size: 1.1rem;
            }
            
            .header {
                padding: 60px 0;
                min-height: auto;
            }
            
            .parallax-section {
                padding: 60px 0;
            }
            
            .obligation-text-wrapper {
                padding-left: 0;
                padding-top: 20px;
            }
            
            .obligation-cards-wrapper {
                margin-bottom: 20px;
            }
        }