:root {
    --primary-red: #c5162b;
    --primary-red-dark: #9e1122;
    --dark: #111111;
    --text: #333333;
    --muted: #666666;
    --light: #f7f7f7;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

main {
    overflow-x: clip;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: 5rem 0;
}

.bg-light-section {
    background-color: var(--light);
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.site-header .navbar {
    padding: 0.75rem 0;
}

.site-header .container {
    max-width: 100%;
}

.site-header .navbar-brand {
    min-width: 0;
    max-width: calc(100% - 3.5rem);
    margin-right: 0;
}

.header-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 6px;
}

.brand-text {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header .nav-link {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    transition: var(--transition);
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
    color: var(--primary-red);
}

.hero-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--light) 100%);
    padding-top: 6rem;
    padding-bottom: 5rem;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-logo-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hero-logo-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.hero-logo {
    width: 100%;
    max-width: 320px;
    object-fit: contain;
}

.primary-button {
    background-color: var(--primary-red);
    border: 2px solid var(--primary-red);
    color: var(--white);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.primary-button:hover,
.primary-button:focus {
    background-color: var(--primary-red-dark);
    border-color: var(--primary-red-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.secondary-button {
    background-color: transparent;
    border: 2px solid var(--dark);
    color: var(--dark);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.secondary-button:hover,
.secondary-button:focus {
    background-color: var(--dark);
    border-color: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
}

.about-text {
    max-width: 900px;
}

.info-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.info-card-icon {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    display: block;
}

.info-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 2.25rem;
    color: var(--primary-red);
    margin-bottom: 1.25rem;
    display: block;
}

.service-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.service-card-text {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

.flow-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    border-top: 4px solid var(--primary-red);
}

.flow-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.flow-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.flow-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.flow-card-text {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

.brand-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.brand-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.brand-card-link {
    display: block;
    padding: 2rem;
    height: 100%;
    color: inherit;
}

.brand-card-logo-wrap {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.brand-card-logo {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

.brand-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.brand-card-text {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.brand-card-button {
    pointer-events: none;
}

.news-brand-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.news-brand-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.news-brand-link {
    display: block;
    padding: 2rem 1.5rem;
    color: inherit;
}

.news-brand-logo-wrap {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.news-brand-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.news-brand-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.vision-mission-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.vision-mission-card:hover {
    box-shadow: var(--shadow-hover);
}

.vision-mission-text {
    color: var(--muted);
    margin: 0;
    font-size: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-top: 0.15rem;
}

.contact-info-item strong {
    display: block;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    margin: 0;
    color: var(--muted);
}

.contact-info-item a {
    color: var(--primary-red);
    transition: var(--transition);
    word-break: break-word;
}

.contact-info-item a:hover {
    color: var(--primary-red-dark);
}

.contact-form {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--dark);
}

.contact-form .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0.65rem 0.85rem;
}

.contact-form .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(197, 22, 43, 0.15);
}

.contact-alert {
    border-radius: 8px;
    border: none;
    background-color: #d4edda;
    color: #155724;
}

.site-footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 0;
}

.footer-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 320px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
    word-break: break-word;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    word-break: break-word;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.whatsapp-float-wrap {
    position: fixed;
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    z-index: 1050;
    pointer-events: none;
}

.whatsapp-float {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #25d366;
    color: var(--white);
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    background-color: #1ebe57;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.whatsapp-float i {
    font-size: 1.6rem;
    line-height: 1;
}

.whatsapp-float-text {
    display: none;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .whatsapp-float-wrap {
        right: max(1.5rem, env(safe-area-inset-right, 0px));
        bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
    }

    .whatsapp-float {
        width: auto;
        height: auto;
        padding: 0.85rem 1.1rem;
        border-radius: 50px;
    }

    .whatsapp-float:hover,
    .whatsapp-float:focus {
        transform: translateY(-3px);
    }

    .whatsapp-float-text {
        display: inline;
    }
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 3.5rem 0;
    }

    .hero-section {
        padding-top: 4rem;
    }

    .site-header .navbar-nav {
        padding-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 2.5rem 0;
    }

    .hero-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero-logo-card {
        padding: 1.5rem;
    }

    .brand-text {
        font-size: 0.9rem;
    }

    .header-logo {
        width: 40px;
        height: 40px;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .vision-mission-card {
        padding: 1.5rem;
    }

    .brand-card-link,
    .news-brand-link {
        padding: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
}
