
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.poster-container {
    width: 800px; /* Adjust as needed for poster size */
    background-color: white; /* White background for the main poster */
    color: #333; /* Dark gray text */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap; /* Allows side banner to sit next to main content */
}

/* Side Banner */
.side-banner {
    width: 40px; /* Width of the side banner */
    background-color: #924596; /* Purple color */
    color: white;
    writing-mode: vertical-rl; /* Rotate text */
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 20px 5px;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    border-radius: 10px 0 0 10px; /* Rounded left corners */
    z-index: 10; /* Ensure it stays on top */
}

.side-banner p {
    margin: 0;
    white-space: nowrap; /* Prevent text wrapping */
}

/* Adjust main content area to accommodate side banner */
.poster-container > *:not(.side-banner) {
    margin-left: 50px; /* Space for the side banner */
    width: calc(100% - 50px); /* Adjust width */
    box-sizing: border-box; /* Include padding in width */
}


/* Header Section */
.poster-header {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.poster-header .header-content {
    display: flex;
    align-items: flex-end; /* Align to the bottom of the illustration */
    justify-content: space-between;
    background-color: #b7e0e7; /* Light blue background behind text */
    padding: 10px 20px 0 20px;
    border-radius: 10px;
    position: relative;
}

.illustration-top {
    flex-shrink: 0; /* Prevent illustration from shrinking */
    width: 50%; /* Adjust width of illustration area */
    text-align: left;
    position: relative;
    bottom: -10px; /* Slightly lower the illustration to overlap the text area */
    left: -20px; /* Pull it slightly to the left to overlap banner area */
}

.illustration-top img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Placeholder background for illustration */
    background-color: #ccc;
    min-height: 150px; /* To make placeholder visible */
}

.header-text {
    flex-grow: 1;
    text-align: right;
    padding-left: 20px;
}

.poster-header h1 {
    font-size: 2.5em;
    line-height: 1.1;
    margin: 0;
    color: #ed217c; /* Pink color for title */
    font-weight: bold;
}

.poster-header h1 span {
    color: #f7931e; /* Orange for "de género" */
}

/* Definition Section */
.definition-section {
    background-color: #f7931e; /* Orange background */
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.4;
}

/* Types Section */
.types-section h2, .modalities-section h2 {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #ed217c; /* Pink for section titles */
    border-bottom: 2px solid #ed217c;
    padding-bottom: 10px;
    display: inline-block;
    width: auto;
    white-space: nowrap;
}

.types-section .types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 15px;
    margin-bottom: 30px;
}

.type-item {
    background-color: #b7e0e7; /* Light blue background */
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 180px; /* Ensure consistent height */
    box-sizing: border-box;
}

.type-item img {
    width: 50px; /* Size of icons */
    height: 50px;
    margin-bottom: 10px;
    /* Placeholder background for icons */
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    padding: 5px;
}

.type-item h3 {
    font-size: 1.1em;
    color: #3b004a; /* Dark purple */
    margin-top: 0;
    margin-bottom: 5px;
    line-height: 1.2;
    font-weight: bold;
}

.type-item p {
    font-size: 0.85em;
    line-height: 1.3;
    color: #555;
    margin: 0;
}

/* Modalities Section */
.modalities-section .modalities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 15px;
    margin-bottom: 30px;
}

.modality-item {
    background-color: #eee; /* Light gray background */
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 160px; /* Consistent height for modalities */
    box-sizing: border-box;
}

.modality-item.full-width {
    grid-column: span 3; /* Occupy full width for the last item */
    background-color: #f7931e; /* Orange background for this special item */
    color: white;
}

.modality-item.full-width h3 {
    color: white;
}

.modality-item.full-width p {
    color: white;
}


.modality-item img {
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
    background-color: rgba(0, 0, 0, 0.1); /* Placeholder */
    border-radius: 50%;
    padding: 5px;
}

.modality-item h3 {
    font-size: 1em;
    color: #3b004a;
    margin-top: 0;
    margin-bottom: 5px;
    line-height: 1.2;
    font-weight: bold;
}

.modality-item p {
    font-size: 0.8em;
    line-height: 1.3;
    color: #555;
    margin: 0;
}

/* Call to Action / Contact Section */
.call-to-action {
    text-align: center;
    margin-bottom: 30px;
}

.call-to-action p {
    font-size: 1em;
    margin-bottom: 10px;
    color: #3b004a; /* Dark purple */
}

.call-to-action h3 {
    font-size: 1.3em;
    color: #ed217c; /* Pink */
    margin-top: 20px;
    margin-bottom: 15px;
}

.contact-numbers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 15px;
}

.contact-box {
    background-color: #ed217c; /* Pink background */
    color: white;
    border-radius: 10px;
    padding: 15px;
    width: 140px; /* Fixed width for contact boxes */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px; /* Consistent height */
    box-sizing: border-box;
}

.contact-box.emergency {
    background-color: #f7931e; /* Orange for emergency */
}

.contact-box img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.2); /* Placeholder */
    border-radius: 50%;
    padding: 5px;
}

.contact-box p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.2;
    color: white; /* Ensure text is white */
}

.contact-box .phone-number {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 5px;
}

.contact-box .description {
    font-size: 0.8em;
}

/* Footer Section */
.poster-footer {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-logo {
    width: 100px; /* Adjust size of logos */
    height: auto;
    filter: grayscale(100%) brightness(0.5); /* Make logos black/grey if needed */
    /* Placeholder background for logos */
    background-color: rgba(0, 0, 0, 0.1);
    min-height: 40px;
    object-fit: contain;
}