:root {
    /* Brand Colors - Official Factor A1 Manual */
    --primary-color: #111f60; /* Navy Factor A1 */
    --secondary-color: #35b8a8; /* Teal Factor A1 */
    --accent-color: #1c35a2; /* Secondary Blue */
    --text-color: #334155;
    --light-text: #64748b;
    --white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #111f60 0%, #1c35a2 100%);
    --glass-bg: rgba(255, 255, 255, 0.9);

    /* Typography - Official Factor A1 Manual */
    --font-heading: "Poppins", sans-serif;
    --font-body: "Inter", sans-serif;

    /* Spacing & Effects */
    --section-padding: 150px 20px;
    --border-radius: 24px;
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--white);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

section {
    padding: var(--section-padding);
}

/* Animations Classes */
.reveal {
    opacity: 0;
    will-change: transform, opacity;
}

.hidden {
    display: none !important;
}

.visible {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 38px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(53, 184, 168, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(53, 184, 168, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-4px) scale(1.02);
}

.hero-btns {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero-btns .btn {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-btns .btn:hover {
    box-shadow: 0 15px 40px rgba(53, 184, 168, 0.4);
}

/* Slider Backgrounds - Handled dynamically via inline styles */
.slide-1,
.slide-2,
.slide-3 {
    background-size: cover;
    background-position: center;
}

/* Header & Nav */
.header {
    background-color: var(--glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 130px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    overflow: hidden;
    position: relative;
    color: var(--white);
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #111f60; /* FALLBACK: Dark blue so we don't see white */
    transform: scale(1);
    will-change: transform, opacity;
}

.slide.active {
    opacity: 1;
    /* Temporarily disabled animation to rule out rendering bugs */
    /* animation: kenBurns 7s ease-out forwards; */
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* REMOVED: This hardcoded overlay was conflicting with the dynamic overlay from the database
.slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(17, 31, 96, 0.85) 0%, rgba(28, 53, 162, 0.7) 50%, rgba(17, 31, 96, 0.85) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}
*/

@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-content {
    position: absolute;
    top: 55%; /* Lowered from 50% to satisfy user preference */
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: translateY(-50%);
    z-index: 30;
    width: 100%;
    max-width: 1280px;
    padding: 0 80px; /* More padding to clear arrows */
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.hero-content > * {
    pointer-events: auto;
}

.hero-content.text-left {
    align-items: flex-start;
    text-align: left;
}
.hero-content.text-center {
    align-items: center;
    text-align: center;
}
.hero-content.text-right {
    align-items: flex-end;
    text-align: right;
}

.hero h1 {
    font-size: 5rem; /* Reduced from 5.5rem */
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--white);
    max-width: 1200px; /* Increased from 1000px */
    text-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 10px 40px rgba(17, 31, 96, 0.4);
    font-weight: 800;
    letter-spacing: -1px;
    text-wrap: balance;
}

.hero p {
    font-size: 1.6rem;
    margin-bottom: 50px;
    opacity: 0.95;
    max-width: 800px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    transform: translateY(-50%);
    z-index: 20; /* Boosted from 10 to ensure it's above hero-content */
}

.slider-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background: rgba(53, 184, 168, 0.3);
    border-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(53, 184, 168, 0.3);
}

/* Sections */
.section-title {
    font-size: 3.5rem;
    margin-bottom: 100px; /* Increased from 80px */
    position: relative;
    font-weight: 800;
}

.section-title.text-center {
    text-align: center;
}
.section-title.text-left {
    text-align: left;
}
.section-title.text-right {
    text-align: right;
}

.section-title::before {
    content: "Factor A1";
    position: absolute;
    top: -25px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    letter-spacing: 6px;
    text-transform: uppercase;
}

.section-title.text-center::before {
    left: 50%;
    transform: translateX(-50%);
}
.section-title.text-left::before {
    left: 0;
    transform: none;
}
.section-title.text-right::before {
    right: 0;
    transform: none;
}

/* Premium About Section */
.about-premium {
    background-color: #fcfbf8;
    padding: 120px 0;
}

.about-grid-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-images-container {
    position: relative;
    padding-bottom: 80px;
}

.about-main-image {
    width: 90%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-overlay-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 48%;
    border: 15px solid #fcfbf8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-overlay-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-quote {
    font-size: 2.8rem;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 40px;
    font-weight: 800;
    font-style: normal;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.about-text-premium p {
    margin-bottom: 30px;
    font-size: 1.15rem;
    color: var(--light-text);
    line-height: 1.8;
}

.about-signature {
    margin-top: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.signature-box {
    width: 15px;
    height: 15px;
    background-color: var(--secondary-color);
}

.signature-info {
    display: flex;
    flex-direction: column;
}

.signature-info strong {
    font-size: 1.3rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.signature-info span {
    font-size: 0.95rem;
    color: var(--light-text);
    font-weight: 600;
}

.feature-icon {
    font-size: 3.5rem;
}

.services {
    background-color: #f1f5f9;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}
.service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.service-card h3 {
    margin: 30px 30px 15px;
    font-size: 1.8rem;
}
.service-card p {
    padding: 0 30px 40px;
    color: var(--light-text);
}

/* Premium Accordion */
.accordion-container {
    max-width: 900px;
    margin: 0 auto 60px;
}
.support-accordion-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}
.accordion-item {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(11, 31, 96, 0.08);
    border-radius: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
    overflow: hidden;
}
.accordion-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.accordion-item.active {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.accordion-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.support-header-group {
    display: flex;
    align-items: center;
    gap: 20px;
}
.support-header-group span {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}
.icon-box {
    width: 45px;
    height: 45px;
    background: rgba(53, 184, 168, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
}
.accordion-item.active .icon-box {
    background: var(--secondary-color);
    color: var(--white);
}
.accordion-header i.fa-chevron-down {
    transition: var(--transition);
    color: var(--primary-color);
    background: #f1f5f9;
    padding: 10px;
    border-radius: 50%;
    font-size: 0.8rem;
}
.accordion-item.active i.fa-chevron-down {
    transform: rotate(180deg);
    background: var(--primary-color);
    color: var(--white);
}
.accordion-content {
    height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 30px;
}

/* Statistics - Horizontal Bar V2 (Definitive Fix) */
.stats-bar-section {
    padding: 80px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stats-bar-v2 {
    background: var(--bg-gradient);
    padding: 60px 40px;
    border-radius: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 30px 60px rgba(17, 31, 96, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.stat-item-v2 {
    flex: 1;
    text-align: center;
    color: white;
}

.stat-content-v2 h2 {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 5px;
    line-height: 1;
    font-weight: 800;
}

.stat-content-v2 p {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 992px) {
    .stats-bar-v2 {
        flex-wrap: wrap;
        padding: 40px 20px;
        gap: 30px;
    }
    .stat-item-v2 {
        flex: 0 0 calc(50% - 20px);
    }
    .stat-divider {
        display: none;
    }
    .stat-content-v2 h2 {
        font-size: 3.5rem;
    }
}

@media (max-width: 500px) {
    .stat-item-v2 {
        flex: 0 0 100%;
    }
}

/* Clients Seamless Carousel */
.clients {
    padding: 80px 0;
    background-color: var(--white);
    position: relative;
}
.clients-intro {
    text-align: center;
    max-width: 800px;
    margin: -30px auto 60px;
    color: var(--light-text);
}

.clients-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}
.clients-wrapper {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 15%,
        black 85%,
        transparent
    );
    mask-image: linear-gradient(
        to right,
        transparent,
        black 15%,
        black 85%,
        transparent
    );
}
.clients-grid {
    display: flex;
    gap: 100px;
    padding: 20px 0;
    width: max-content;
    animation: scroll 30s linear infinite;
}
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-33.333% - 33.333px));
    }
}
.client-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    filter: grayscale(100%);
    opacity: 0.4;
    transition: var(--transition);
}
.client-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
}
.client-logo {
    width: 60px;
    height: 60px;
}
.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.client-item span {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

/* Carousel controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.slider-arrow.prev {
    left: 0;
}
.slider-arrow.next {
    right: 0;
}

/* Premium Contact Section (Support) */
.support-contact-box {
    margin-top: 80px;
    text-align: center;
    padding: 80px 40px;
    background: #f8fafc;
    border-radius: 40px;
}

.support-contact-desc {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.15rem;
    color: var(--light-text);
}

.contact-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card-premium {
    background: var(--white);
    padding: 45px 35px;
    border-radius: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(17, 31, 96, 0.05);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.contact-card-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--bg-gradient);
    opacity: 0;
    transition: var(--transition);
}

.contact-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.contact-card-premium:hover::before {
    opacity: 1;
}

.contact-icon-premium {
    width: 70px;
    height: 70px;
    background: var(--bg-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(17, 31, 96, 0.2);
}

.contact-card-premium h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-card-premium p {
    color: var(--light-text);
    margin-bottom: 25px;
}

.contact-link-premium {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: var(--transition);
    display: block;
}

.contact-card-premium:hover .contact-link-premium {
    color: var(--secondary-color);
}

/* Contact Section */
.contact-hero {
    background: var(--bg-gradient);
    padding: 150px 0 100px;
    color: var(--white);
    text-align: center;
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    background: var(--white);
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-top: -100px;
}
.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}
.contact-details li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Pre-footer CTA Section */
.pre-footer-cta {
    background: var(--bg-gradient);
    padding: 120px 20px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.pre-footer-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 70% 20%,
        rgba(53, 184, 168, 0.1) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.pre-footer-cta h2 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.1;
    font-weight: 800;
}

.pre-footer-cta p {
    font-size: 1.4rem;
    margin-bottom: 50px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form .form-group {
    margin-bottom: 25px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: inherit;
    transition: var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(53, 184, 168, 0.1);
    outline: none;
}

/* Footer */
.footer {
    background: #020617;
    color: var(--white);
    padding: 80px 0 40px;
    text-align: center;
}
.footer-logo-img {
    height: 140px;
    filter: brightness(0) invert(1);
}

/* WhatsApp & Misc */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
}
.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128c7e;
}

main {
    padding-top: 120px;
    min-height: 70vh;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 40px !important; /* Increased to 40px and forced !important */
    }
    .nav-links {
        display: none;
    }
    .nav-links.active {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1001;
        padding: 40px;
    }
    .nav-links.active a {
        font-size: 1.5rem;
    }
    .menu-toggle {
        display: flex;
        z-index: 1100;
        position: relative;
        margin-right: 15px !important; /* Pull it further from the edge */
    }
    .logo-img {
        height: 52px !important; /* Slightly smaller for better balance */
    }
    .header {
        padding: 8px 0 !important;
    }
    .hero h1 {
        font-size: 1.8rem !important; /* Forced !important */
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
    }
    .hero p {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }
    .hero-content {
        padding: 0 40px !important;
        top: 55% !important;
    }
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    .slider-controls {
        padding: 0 20px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    .stats-grid {
        gap: 20px;
        max-width: 400px;
    }
    .stat-item {
        width: 100%;
    }
    .about-teaser-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-teaser-images {
        padding-bottom: 40px;
    }
    .teaser-main {
        width: 100%;
    }
    .teaser-overlay {
        width: 60%;
    }
    /* Nosotros / About Us Responsive Fixes */
    .about-grid-premium {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .about-images-container {
        padding-bottom: 40px !important;
    }
    .about-main-image {
        width: 100% !important;
    }
    .about-overlay-image {
        width: 60% !important;
        border-width: 8px !important;
    }
    .about-quote {
        font-size: 1.8rem !important;
        margin-bottom: 25px !important;
    }
    .about-text-premium p {
        font-size: 1rem !important;
    }
    .about-signature {
        margin-top: 30px !important;
        flex-direction: column;
        align-items: flex-start;
    }
    .intro-title {
        font-size: 2rem !important;
    }
    .intro-title span {
        font-size: 1rem !important;
    }
    .support-accordion-title {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.2rem !important; /* Even smaller to ensure it NEVER breaks on tiny screens */
        line-height: 1.1 !important;
    }
    .hero p {
        font-size: 0.85rem !important; 
    }
    .logo-img {
        height: 45px !important;
    }
    .section-title {
        font-size: 2rem !important;
        margin-bottom: 50px !important;
    }
    .container {
        padding: 0 25px !important;
    }
    .intro-title {
        font-size: 1.6rem !important;
    }
    .about-quote {
        font-size: 1.5rem !important;
    }
}

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

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

/* About Highlight Teaser (Index Only) */
.about-highlight {
    padding: 120px 0;
    background-color: #fcfbf8;
}

.about-teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-teaser-images {
    position: relative;
    padding-bottom: 60px;
}

.teaser-main {
    width: 85%;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.teaser-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    border: 10px solid var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.about-teaser-text p {
    font-size: 1.15rem;
    color: var(--light-text);
    margin: 30px 0 40px;
    line-height: 1.8;
}

/* Contact Page V2 - Premium Design */
.contact-hero-v2 {
    background: url("/imagenes/nosotros-main.webp") no-repeat center
        center/cover;
    padding: 220px 0 140px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay-v2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(17, 31, 96, 0.95) 0%,
        rgba(28, 53, 162, 0.7) 100%
    );
    z-index: 1;
}

.contact-hero-v2 .container {
    position: relative;
    z-index: 2;
}

.contact-hero-v2 .hero-title {
    color: var(--white);
    font-size: 5.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -2px;
    line-height: 1;
    text-wrap: balance;
}

.contact-hero-v2 .hero-title span {
    color: var(--secondary-color);
    display: block;
    font-size: 0.4em;
    text-transform: uppercase;
    letter-spacing: 8px;
    font-weight: 700;
    margin-top: 10px;
}

.contact-hero-v2 .hero-subtitle {
    color: var(--white);
    font-size: 1.35rem;
    opacity: 0.9;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.contact-hero-v2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 80% 20%,
        rgba(53, 184, 168, 0.2) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.contact-section-v2 {
    padding: 100px 0;
    background-color: #fcfbf8;
    margin-top: -50px;
    position: relative;
    z-index: 5;
}

.contact-grid-v2 {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-card-v2 {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    transition: var(--transition);
    border: 1px solid rgba(17, 31, 96, 0.05);
}

.contact-card-v2:hover {
    transform: translateX(10px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

.icon-box-v2 {
    width: 60px;
    height: 60px;
    background: var(--bg-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.card-text-v2 strong {
    display: block;
    font-size: 0.85rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.card-text-v2 a,
.card-text-v2 span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.premium-form-v2 {
    background: var(--white);
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(17, 31, 96, 0.1);
    border: 1px solid rgba(17, 31, 96, 0.05);
}

.form-row-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.form-group-v2 {
    margin-bottom: 25px;
}

.form-group-v2 label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper-v2 {
    position: relative;
}

.input-wrapper-v2 i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.input-wrapper-v2 input,
.premium-form-v2 textarea {
    width: 100%;
    padding: 18px 25px 18px 55px;
    border: 2px solid #f1f5f9;
    border-radius: 15px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.premium-form-v2 textarea {
    padding-left: 25px;
}

.input-wrapper-v2 input:focus,
.premium-form-v2 textarea:focus {
    border-color: var(--secondary-color);
    background: var(--white);
    outline: none;
    box-shadow: 0 10px 30px rgba(53, 184, 168, 0.1);
}

.social-icon-v2 {
    width: 45px;
    height: 45px;
    border: 2px solid rgba(17, 31, 96, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icon-v2:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

@media (max-width: 1024px) {
    .contact-grid-v2 {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .premium-form-v2 {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .form-row-v2 {
        grid-template-columns: 1fr;
    }
    .contact-hero-v2 .hero-title {
        font-size: 2rem !important;
    }
    .breadcrumbs {
        margin-bottom: 15px !important;
    }
}

/* Footer - Modern & Premium (Factor A1 Brand) */
.footer {
    background: #111f60;
    color: #fff;
    padding: 80px 0 0;
    font-family: var(--font-body);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-column h4 {
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 30px;
    font-size: 1.2rem;
    position: relative;
    text-align: left;
}

.footer-column h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background: #35b8a8;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 15px;
    text-align: left;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: #35b8a8;
    padding-left: 5px;
}

/* Brand Column */
.brand-col {
    text-align: center;
}

.brand-col .footer-logo-img {
    height: 130px; /* Logo aún más grande como solicitó el usuario */
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #35b8a8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(53, 184, 168, 0.4);
    background: #fff;
    color: #35b8a8;
}

/* Reclaims Column */
.reclaims-col {
    text-align: left;
}

.reclaims-book {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 2.5rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reclaims-book:hover {
    background: #fff;
    color: #111f60;
    transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
    background: #35b8a8;
    padding: 20px 0;
    color: #fff;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 60px 0 0 !important;
        overflow-x: hidden;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .brand-col .footer-logo-img {
        height: 45px !important; /* Much safer size for vertical mobile layouts */
        max-width: 100%;
        object-fit: contain;
        margin-bottom: 20px;
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-column h4,
    .footer-column ul li,
    .brand-col,
    .reclaims-col {
        text-align: center;
    }
    .social-links {
        justify-content: center;
        margin-bottom: 30px;
    }
    .reclaims-book {
        margin: 0 auto;
    }
    .flex-between {
        flex-direction: column;
        gap: 15px;
    }
    .footer-desc {
        padding: 0 15px;
        font-size: 0.9rem;
    }
}

/* Internal Pages Spacing Fix */
main.container {
    padding-top: 180px;
    min-height: 60vh;
}

.breadcrumbs {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 10px;
    opacity: 0.5;
}

@media (max-width: 992px) {
    main.container {
        padding-top: 140px;
    }
}

/* Support & Internal Pages Title Fix */
.intro-title {
    line-height: 1.2;
    margin-bottom: 25px;
    font-size: 3.5rem;
    color: var(--primary-color);
}

.intro-title span {
    display: block;
    font-size: 1.35rem;
    margin-top: 5px;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .intro-title {
        font-size: 2.5rem;
    }

    /* Hero Responsive Fixes */
    .hero-content {
        padding: 0 50px; /* Reduced to give more space for text */
        top: 50%; /* Adjusted for better mobile balance */
    }

    .hero h1 {
        font-size: 2.8rem; /* Significant reduction from 5rem */
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1.15rem; /* Better for mobile readability */
        margin-bottom: 30px;
        line-height: 1.5;
    }

    .slider-controls {
        padding: 0 15px; /* Move arrows closer to screen edges */
    }

    .slider-btn {
        width: 48px; /* Smaller arrows */
        height: 48px;
        font-size: 1rem;
    }

    .hero-btns .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

/* Chatbot AI - Premium Glassmorphism Style */
.chatbot-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(17, 31, 96, 0.3);
    z-index: 9999;
    transition: var(--transition);
}

.chatbot-launcher:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--secondary-color);
}

.chatbot-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    height: 600px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.chatbot-window.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.chatbot-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-info img {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    padding: 5px;
}

.chatbot-info h4 {
    color: white;
    margin: 0;
    font-size: 1rem;
}

.chatbot-info span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.chatbot-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.chatbot-close:hover {
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.bot-message {
    align-self: flex-start;
    background: white;
    color: var(--text-color);
    border-bottom-left-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.user-message {
    align-self: flex-end;
    background: var(--secondary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.loading {
    font-style: italic;
    opacity: 0.7;
}

.chatbot-input-area {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.chatbot-input-area input {
    flex: 1;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 10px 20px;
    outline: none;
    font-size: 0.9rem;
}

.chatbot-input-area button {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.chatbot-input-area button:hover {
    background: var(--secondary-color);
}

.chatbot-whatsapp-footer {
    padding: 10px;
    text-align: center;
    background: #25d36622;
}

.chatbot-whatsapp-footer a {
    color: #128c7e;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 480px) {
    .chatbot-window {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
}

/* Factor A1 - Professional Animation & UI System */
.hero-content { 
    z-index: 10; /* Ensures content is always above background and particles */
    overflow: hidden; 
}

.mask-reveal-wrap { 
    overflow: hidden; 
    display: inline-block; 
    vertical-align: bottom; 
}

.mask-reveal-inner { 
    display: block; 
    will-change: transform; 
}

@keyframes kenBurnsSlow { 
    0% { transform: scale(1); } 
    100% { transform: scale(1.1); } 
}

.kb-active { 
    animation: kenBurnsSlow 10s linear infinite alternate; 
}

.particles-container { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    pointer-events: none; 
    z-index: 5; /* Above background, but below hero-content */
}

.particle { 
    position: absolute; 
    pointer-events: none; 
    background: #fff !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    opacity: 0.6;
}

/* Premium Button Enhancements */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: perspective(1px) translateZ(0);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}
