﻿:root {
    --md-surface: #ffffff;
    --md-on-surface: #1f2937;
    --md-primary: #636569;
    --md-surface-variant: #D6D1C4;
    --elevation-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
    --elevation-2: 0 6px 18px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
    --radius: 12px;
    --transition: 280ms cubic-bezier(.4,0,.2,1);
    --gap: 12px;
    --container-padding: 48px;
    /*font-family: Inter, Roboto, "Helvetica Neue", Arial, sans-serif;*/
    color-scheme: light;
}

.mt-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(194,186,152,0.04), transparent);
    transition: box-shadow var(--transition), transform var(--transition);
    will-change: transform;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    outline: none;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: background var(--transition);
    position: relative;
    min-height: 56px;
}

    .accordion-header:focus {
        box-shadow: 0 0 0 4px rgba(99,101,105,0.12);
        border-radius: 10px;
    }

    .accordion-header:hover {
        background: rgba(0,0,0,0.03);
    }

.leading-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    background: var(--md-surface-variant);
    color: var(--md-primary);
    flex: 0 0 44px;
    font-size: 20px;
    box-shadow: none;
}

.title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    color: var(--md-on-surface);
}

.subtitle {
    font-size: 0.875rem;
    /*color: rgba(31,41,55,0.7);*/
    margin-top: 4px;
}

.spacer {
    flex: 1 1 auto;
}

.chevron {
    transition: transform var(--transition);
    color: rgba(31,41,55,0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex: 0 0 40px;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition);
    padding: 0 16px;
    background: transparent;
}

.accordion-content-inner {
    padding: 12px 0 18px 0;
    /*color: rgba(31,41,55,0.9);*/
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Estado abierto */
.accordion-item[aria-expanded="true"] {
    box-shadow: var(--elevation-2);
    transform: translateY(-2px);
}

    .accordion-item[aria-expanded="true"] .accordion-content {
        padding: 12px 16px 18px 16px;
    }

    .accordion-item[aria-expanded="true"] .chevron {
        transform: rotate(180deg);
    }

/* Ripple effect */
.ripple {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

    .ripple span {
        position: absolute;
        border-radius: 50%;
        transform: scale(0);
        /*background: rgba(98,0,238,0.12);*/
        animation: ripple 600ms linear;
        will-change: transform, opacity;
    }

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Accessibility preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    :root {
        --transition: 120ms linear;
    }

    .ripple span {
        animation-duration: 200ms;
    }

    .accordion-content {
        transition: none;
    }

    .accordion-item {
        transition: none;
    }

    .chevron {
        transition: none;
    }
}

/* Responsive adjustments */
@media (max-width:720px) {
    :root {
        --container-padding: 28px;
    }

    .md-card {
        padding: 10px;
    }

    .leading-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        font-size: 22px;
        border-radius: 10px;
    }

    .chevron {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .accordion-header {
        padding: 16px;
        min-height: 64px;
        gap: 14px;
    }

    .title {
        font-size: 1.02rem;
    }

    .subtitle {
        font-size: 0.88rem;
    }

    .accordion-content-inner {
        font-size: 0.98rem;
    }
}

/* Very small screens: stack icon above text for larger tap targets */
@media (max-width:420px) {
    .accordion-header {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

        /* Make header content wrap so the title can take full width */
        .accordion-header > div:first-child {
            display: flex;
            align-items: center;
            gap: 12px;
        }

    /* If you prefer icon above text, uncomment the block below */
    /*
      .accordion-header{
        flex-direction:column;
        align-items:flex-start;
        padding:14px;
      }
      .leading-icon{ margin-bottom:8px; }
      .spacer{ display:none; }
      .chevron{ align-self:flex-end; }
      */
}

/* Landscape small devices: increase width and spacing */
@media (max-height:420px) and (orientation:landscape) {
    .accordion-header {
        padding: 12px 14px;
        min-height: 56px;
    }

    .leading-icon {
        width: 40px;
        height: 40px;
    }
}

/* Utility: open first item on large screens by default */
@media (min-width:900px) {
    .accordion-item:first-child[aria-expanded="false"] .accordion-content {
        /* no auto open, but you could set styles here if desired */
    }
}

/* Ensure single-line icon text */
.material-icons {
    font-size: 20px;
    line-height: 1;
}

.list-avisos {
    list-style: inside;
    list-style-type: none;
    padding-left: 0;
}

    .list-avisos li {
        position: relative;
        /*padding: 10px 10px 10px 20px;*/
        padding-left: 20px;
        margin: .5em 0;
    }

        .list-avisos li::before {
            font-family: 'FontAwesome';
            content: "\f1c1";
            position: absolute;
            left: 0;
            top: 0;
            text-align: right;
            color: #636569;
            width: 10px;
            /*font-weight: bold;
                display: inline-block;*/
        }

        .list-avisos li:hover {
            text-decoration: underline;
            transition: all 0.3s ease;
        }

        .list-avisos li a {
            text-decoration: none;
            color: #000;
        }

        p{
            text-align: justify;
            margin: 0 0 10px 0;
        }

        ul, ol{
            list-style-position: inside;
        }

        ul li{
            margin: 0 0 10px 0;
        }