/* ===== CSS Variables ===== */
:root {
    --primary-color: #518DC9;
    --primary-dark: #3d7ab8;
    --primary-light: #6a9fd4;
    --secondary-color: #1e293b;
    --accent-color: #f59e0b;
    --text-color: #334155;
    --text-light: #64748b;
    --text-dark: #1e293b;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --background-dark: #0f172a;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===== Utility Classes ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-white {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.btn-white:hover {
    background-color: var(--background-alt);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--border-radius);
}

.logo-text strong {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    padding: 0.625rem 1.25rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--background-alt) 0%, var(--background) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-color);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
}

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    max-width: 500px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
}

.placeholder-icon svg {
    width: 80px;
    height: 80px;
    opacity: 0.9;
}

.hero-image-placeholder span {
    font-size: 1.25rem;
    font-weight: 600;
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    max-width: 450px;
    background: linear-gradient(135deg, var(--background-alt) 0%, var(--border-color) 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.placeholder-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background-color: var(--primary-color);
    color: white;
    font-size: 3rem;
    font-weight: 700;
    border-radius: 50%;
}

.placeholder-label {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 500;
}

.about-text {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-list {
    margin-top: 1.5rem;
}

.about-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ===== Services Section ===== */
.services {
    padding: 100px 0;
    background-color: var(--background-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.service-description {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===== Gallery Section ===== */
.gallery {
    padding: 100px 0;
    background-color: var(--background-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.75rem;
        max-width: 100%;
        padding-bottom: 4px;
    }

    .gallery-grid::-webkit-scrollbar {
        display: none;
    }

    .gallery-item {
        flex: 0 0 82%;
        scroll-snap-align: center;
        height: 65vh;
    }
}

/* ===== Team Section ===== */
.team {
    padding: 100px 0;
    background-color: var(--background);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 580px;
    margin: 0 auto;
}

.team-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-photo {
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.team-card:hover .team-img {
    transform: scale(1.03);
}

@media (max-width: 600px) {
    .team-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.75rem;
        max-width: 100%;
        padding-bottom: 4px;
    }

    .team-grid::-webkit-scrollbar {
        display: none;
    }

    .team-card {
        flex: 0 0 82%;
        scroll-snap-align: center;
    }

    .team-photo {
        height: 65vh;
    }
}

/* ===== Benefits Section ===== */
.benefits {
    padding: 100px 0;
}

.benefits-image-mobile {
    display: none;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.benefit-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-light);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.benefit-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.benefit-description {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: white;
    margin-bottom: 1rem;
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px 0;
    background-color: var(--background-alt);
}

.contact .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-text {
    color: var(--text-color);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}


.contact-method-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-method-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.contact-method-value {
    font-weight: 500;
    color: var(--text-dark);
}

.contact-method-value:hover {
    color: var(--primary-color);
}

/* ===== Contact Form ===== */
.contact-form-wrapper {
    background-color: var(--background);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(81, 141, 201, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 1rem;
    text-align: center;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer .logo-icon {
    background-color: var(--primary-light);
}

.footer-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    opacity: 0.8;
}

.footer h4 {
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    font-size: 0.9375rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer ul li a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: white;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .services-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header .container {
        height: 70px;
    }

    .nav,
    .header-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-image {
        display: none;
    }

    .about {
        display: none;
    }

    .hero {
        background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('assets/services-4.jpeg') center / cover no-repeat;
    }

    .benefits-image-mobile {
        display: block;
        overflow: hidden;
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-md);
        margin-top: 1.5rem;
    }

    .benefits-img-mobile {
        width: 100%;
        height: auto;
        margin-top: -45%;
        margin-bottom: -45%;
    }

    .nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 1rem 0;
        box-shadow: var(--shadow-md);
    }

    .nav.active .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav.active .nav-link {
        display: block;
        padding: 1rem 20px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero .container,
    .about .container,
    .contact .container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-image-placeholder {
        max-width: 350px;
        aspect-ratio: 1;
    }

    .about-image-placeholder {
        max-width: 350px;
        margin: 0 auto;
    }

    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .convenio-content {
        grid-template-columns: 1fr;
    }
}

/* ===== Localization Section ===== */
.localization {
    padding: 100px 0;
    background-color: var(--background-alt);
}

.localization-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.localization-info h3 {
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.localization-description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.city-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--background);
    border-radius: var(--border-radius);
    font-size: 0.9375rem;
    color: var(--text-color);
    transition: var(--transition);
}

.city-item:hover {
    background-color: var(--primary-color);
    color: white;
}

.city-item:hover .city-icon svg {
    stroke: white;
}

.city-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.city-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary-color);
    transition: var(--transition);
}

.localization-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.localization-map {
    display: flex;
    align-items: center;
    justify-content: center;
}

.localization-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
    .cities-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .localization-content {
        grid-template-columns: 1fr;
    }

    .localization-img {
        max-width: 100%;
    }
}

/* ===== Logo Image Styles ===== */
.logo-img {
    height: 50px;
    width: auto;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

/* ===== Hero Image Styles ===== */
.hero-image {
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: 0 auto;
}

.hero-img {
    width: 100%;
    height: auto;
    margin-top: -25%;
    margin-bottom: -25%;
}

/* ===== About Image Styles ===== */
.about-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
}

/* ===== About Responsible Section ===== */
.about-responsible {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--background-alt);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.about-responsible h3 {
    font-size: 1.125rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.about-responsible p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.about-responsible .crefito {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* ===== Convenio Section ===== */
.convenio {
    padding: 80px 0;
    background-color: var(--background);
}

.convenio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.convenio-text p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.convenio-text p:last-of-type {
    margin-bottom: 1.5rem;
}

.convenio-highlight {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--primary-color);
}

.convenio-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin: 0 auto;
}

/* ===== Footer CNPJ ===== */
.footer-cnpj {
    font-size: 0.8125rem;
    opacity: 0.6;
    margin-top: 1rem;
}

/* ===== Footer Social Links ===== */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
}

.social-link svg {
    width: 16px;
    height: 16px;
    fill: white;
}


/* ===== Photo crop position (mobile) ===== */
@media (max-width: 768px) {
    img.align-top {
        object-position: center top;
    }

    img.align-center {
        object-position: center center;
    }
}

/* ===== Responsive adjustments for new elements ===== */
@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }

    .hero-img {
        max-width: 350px;
    }

    .about-img {
        max-width: 300px;
    }

    .convenio-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .convenio-text {
        order: 1;
    }

    .convenio-image {
        order: 2;
    }

    .convenio-img {
        max-width: 350px;
    }
}
