/* --- Política de Tratamiento de Datos Page Styles --- */

/* Page Hero */
.ptd-hero {
    background: linear-gradient(135deg, #2d1457 0%, #4c2982 50%, #6b3fa0 100%);
    padding: 70px 5% 90px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ptd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5v10M30 45v10M5 30h10M45 30h10' stroke='rgba(255,255,255,0.04)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

.ptd-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.ptd-hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.15;
}

.ptd-hero-content p {
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.6;
}

.ptd-hero .hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.ptd-hero .hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
    fill: var(--bg-light);
}

/* Container */
.ptd-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 5% 80px;
}

/* Intro text */
.ptd-intro {
    background: var(--white);
    border-radius: 16px;
    padding: 30px 35px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.ptd-intro p {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
}

/* Accordion */
.ptd-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ptd-accordion-item {
    background: var(--white);
    border-radius: 14px;
    border: 1px solid #eef2f5;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.ptd-accordion-item:hover {
    border-color: rgba(76, 41, 130, 0.2);
}

.ptd-accordion-item.active {
    box-shadow: 0 8px 30px rgba(76, 41, 130, 0.08);
    border-color: rgba(76, 41, 130, 0.25);
}

.ptd-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    gap: 15px;
    transition: background-color 0.25s ease;
}

.ptd-accordion-header:hover {
    background-color: #faf8fd;
}

.ptd-accordion-header .ptd-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b1f6e, #5e3ca3);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.25s ease;
}

.ptd-accordion-item.active .ptd-number {
    transform: scale(1.08);
}

.ptd-accordion-header h3 {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
}

.ptd-accordion-header .ptd-chevron {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.ptd-accordion-header .ptd-chevron svg {
    width: 18px;
    height: 18px;
    fill: var(--text-light);
    transition: fill 0.25s ease;
}

.ptd-accordion-item.active .ptd-chevron {
    transform: rotate(180deg);
}

.ptd-accordion-item.active .ptd-chevron svg {
    fill: var(--accent-color);
}

/* Accordion Body */
.ptd-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 25px;
}

.ptd-accordion-item.active .ptd-accordion-body {
    max-height: 800px;
    padding: 0 25px 25px;
}

.ptd-accordion-body p {
    font-size: 14.5px;
    color: var(--text-dark);
    line-height: 1.75;
    margin-bottom: 10px;
}

.ptd-accordion-body p:last-child {
    margin-bottom: 0;
}

.ptd-accordion-body ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.ptd-accordion-body ul li {
    position: relative;
    padding: 8px 0 8px 28px;
    font-size: 14.5px;
    color: var(--text-dark);
    line-height: 1.65;
    border-bottom: 1px solid #f5f5f7;
}

.ptd-accordion-body ul li:last-child {
    border-bottom: none;
}

.ptd-accordion-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #4c2982, #7b5ea7);
    border-radius: 50%;
}

.ptd-accordion-body ul li strong {
    color: var(--accent-color);
}

.ptd-accordion-body a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.ptd-accordion-body a:hover {
    color: var(--accent-color);
}

/* Contact Info Card */
.ptd-contact-card {
    margin-top: 2.5rem;
    background: var(--white);
    border-radius: 16px;
    padding: 30px 35px;
    border: 1px solid #eef2f5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.ptd-contact-card .ptd-contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b1f6e, #5e3ca3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ptd-contact-card .ptd-contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.ptd-contact-card .ptd-contact-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.ptd-contact-card .ptd-contact-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 4px;
}

.ptd-contact-card .ptd-contact-info a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ptd-contact-card .ptd-contact-info a:hover {
    color: var(--accent-color);
}

/* Legal Reference */
.ptd-legal-ref {
    text-align: center;
    margin-top: 2rem;
    padding: 20px;
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .ptd-hero {
        padding: 50px 5% 70px;
    }
    .ptd-hero-content h1 {
        font-size: 28px;
    }
    .ptd-container {
        padding: 40px 5% 60px;
    }
    .ptd-intro {
        padding: 22px 20px;
    }
    .ptd-accordion-header {
        padding: 16px 18px;
    }
    .ptd-accordion-item.active .ptd-accordion-body {
        padding: 0 18px 20px;
    }
    .ptd-contact-card {
        flex-direction: column;
        padding: 22px 20px;
    }
    .ptd-hero .hero-wave svg {
        height: 35px;
    }
}
