/* =========================================================
   GROWING BUSINESS - style2.css (COMPLETO)
   - Variables, reset, header, hero, services, nosotros,
     contacto, footer, segmentation, responsive.
========================================================= */

/* =========================================================
   VARIABLES
========================================================= */
:root {
    --primary-color: #75b344;
    --primary-strong: #629639;
    --secondary-color: #aab7ae;
    --accent-color: #00d4ff;

    --text-light: #e2e8f0;
    --text-muted: #aab7ae;
    --bg-dark-1: #1c282a;
    --bg-dark-2: #162022;
    --white: #ffffff;

    --glass-bg: rgba(28, 40, 42, 0.9);
    --glass-border: rgba(117, 179, 68, 0.18);

    --card-bg: rgba(255, 255, 255, 0.03);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.45);

    --radius-lg: 24px;
    --radius-md: 14px;
    --transition: 0.35s ease;
}

/* =========================================================
   RESET GLOBAL
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark-1), var(--bg-dark-2));
    background-size: 400% 400%;
    animation: gradientBG 18s ease infinite;
    color: var(--text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* =========================================================
   GLOBAL UTILITIES / SEGMENTATION
========================================================= */
.container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-box {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
}

/* Soft divider between sections */
.section-divider {
    width: 90%;
    height: 2px;
    background: rgba(255, 255, 255, 0.03);
    margin: 80px auto;
    border-radius: 50px;
}

/* =========================================================
   HEADER (main-header)
   HTML expects: <header id="main-header"> ... nav-group left/right ... logo-container ...
========================================================= */
/* ==============================
       HEADER PRINCIPAL
============================== */

#main-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    /* Reduced from 70% */
    max-width: 620px;
    /* Reduced from 650px */
    height: 52px;
    /* Reduced from 60px */

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

    padding: 0 0.75rem;
    z-index: 120;

    background: var(--glass-bg);
    /* Mantiene el estilo glass arriba */
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);

    transition: all 0.35s ease;
}

#main-header:hover {
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

/* ====================================
   NAV GROUPS (LEFT / RIGHT)
==================================== */

.nav-group {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    transition: var(--transition);
    flex: 1;
}

.nav-group.left {
    justify-content: flex-end;
    padding-right: 60px;
}

.nav-group.right {
    justify-content: flex-start;
    padding-left: 60px;
}

.nav-group a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 6px 0;
    position: relative;
    transition: color 0.35s ease;
}

.nav-group a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s ease;
}

.nav-group a:hover {
    color: var(--primary-color);
}

.nav-group a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* ====================================
       LOGO CENTRAL (MODO NORMAL)
==================================== */

.logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 65px;
    /* Reduced from 75px */
    height: 65px;
    /* Reduced from 75px */
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border: 4px solid rgba(255, 255, 255, 0.5);

    z-index: 1300;
    transition: all 0.45s cubic-bezier(.2, .9, .3, 1);
}

.logo-container img {
    width: 80%;
    padding-left: 10px;
    transition: transform .35s ease;
}

.logo-container:hover {
    transform: translate(-50%, -55%) scale(1.03);
}

/* ====================================
        HEADER CUANDO HACE SCROLL
==================================== */

#main-header.scrolled {
    top: 12px;
    width: 75%;
    /* Reduced from 80% */
    max-width: 800px;
    /* Reduced from 850px */

    background: #ffffff;
    /* ← CAMBIO A BLANCO */
    padding: 0 1.25rem;
    height: 48px;
    /* Reduced from 54px */

    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.20);
}

/* LOGO MODO SCROLLED - Left Positioned with Animation */
#main-header.scrolled .logo-container {
    left: 25px;
    width: 55px;
    height: 55px;
    transform: translateY(-50%);

    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

#main-header.scrolled .logo-container img {
    width: 80%;
}

/* NAV LINKS EN MODO SCROLL */
#main-header.scrolled .nav-group a {
    color: #222;
    /* texto más oscuro */
}

#main-header.scrolled .nav-group a:hover {
    color: var(--primary-color);
}

/* Ajustes en padding al scrollear */
#main-header.scrolled .nav-group.left {
    margin-left: 260px;
    /* Clear the "Growing Business" text */
    padding-right: 0;
}

#main-header.scrolled .nav-group.right {
    padding-left: 12px;
}

/* ====================================
   BRAND TEXT (SCROLL)
==================================== */
.brand-text {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
    font-size: 1.2rem;
    font-weight: 800;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    pointer-events: none;
}

.brand-growing {
    color: var(--primary-color);
}

.brand-business {
    color: var(--bg-dark-1);
}

#main-header.scrolled .brand-text {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    left: 85px;
    /* Adjust based on logo size */
}

/* =========================================================
   HERO
========================================================= */
.hero {
    display: flex;
    align-items: center;
}

/* background via HTML inline or CSS .hero { background-image: url(...)} */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    animation: pulse 9s infinite alternate;
    pointer-events: none;
}

.hero::before {
    width: 850px;
    height: 850px;
    top: -240px;
    right: -240px;
    background: radial-gradient(circle, rgba(117, 179, 68, 0.04), transparent 70%);
}

.hero::after {
    width: 600px;
    height: 600px;
    bottom: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(29, 102, 219, 0.06), transparent 70%);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: .5
    }

    100% {
        transform: scale(1.08);
        opacity: 1
    }
}

/* hero content aligned to right or left depending on your preference */
.hero-content {
    max-width: 600px;

    /* place on right side by default */
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left !important;
    margin-left: 50px;
    z-index: 20;
}

.hero h1 {
    font-size: 3.4rem;
    line-height: 1.02;
    color: var(--text-light);
    margin-bottom: 18px;
    font-weight: 800;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 24px;
}

/* CTA */
.cta-button {
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-strong));
    color: var(--white);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    transition: transform .28s ease, box-shadow .28s ease;
    display: inline-block;
    margin-left: -0px;
    padding-left: 20px;
    padding-right: 20px;

}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   SERVICES / CARDS (Impactful 3D cards)
========================================================= */
.services {
    padding: 120px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    font-weight: 800;
}

.section-title p {
    color: var(--text-muted);
    margin-top: 8px;
}

/* grid container */
.services-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 34px;
    padding: 0 20px;
}

/* card */
.service-card {
    position: relative;
    height: 430px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.03);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.35));
}

.service-card:hover {
    transform: translateY(-14px) scale(1.03);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

.service-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.56) saturate(0.95);
    transition: transform .6s ease, filter .4s ease;
}

.service-card:hover .service-bg {
    transform: scale(1.08);
    filter: brightness(0.78);
}

/* overlay content strip */
.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 36px;
    color: var(--text-light);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.service-content h3 {
    font-size: 1.9rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.service-content p {
    color: #dbe7df;
    margin-bottom: 18px;
    font-size: 0.98rem;
    line-height: 1.5;
}

/* service button */
.service-content a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    font-weight: 700;
    text-decoration: none;
    transition: all .25s ease;
}

.service-content a:hover {
    background: var(--primary-color);
    color: var(--bg-dark-1);
    border-color: rgba(0, 0, 0, 0.1);
}

/* =========================================================
   NOSOTROS (section styling)
========================================================= */
.nosotros {
    padding: 120px 0;
}

.nosotros-container {
    width: 92%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 80px;
    align-items: flex-start;
}

/* left text */
.nosotros-left {
    flex: 1;
}

.nosotros-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
}

.title-underline {
    width: 140px;
    height: 6px;
    background: var(--primary-color);
    margin: 16px 0 30px;
    border-radius: 8px;
}

/* text */
.nosotros-text {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.9;
}

/* collage */
.nosotros-collage {
    flex: 1;
    height: 520px;
    position: relative;
}

.collage-img {
    position: absolute;
    width: 280px;
    height: 360px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform .4s ease;
}

.collage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collage-img:hover {
    transform: scale(1.05);
}

/* positions (tweak as needed) */
.img1 {
    top: 0;
    left: 20px;
    transform: rotate(-2deg);
}

.img2 {
    top: 90px;
    right: 40px;
    width: 320px;
    height: 400px;
    transform: rotate(4deg);
}

.img3 {
    bottom: 0;
    left: 120px;
    width: 260px;
    height: 340px;
    transform: rotate(-4deg);
}

/* =========================================================
   CONTACT SECTION
========================================================= */
.contact-section {
    padding: 120px 0;
}

.contact-container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-title {
    text-align: center;
    margin-bottom: 36px;
}

.contact-title h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-light);
}

.contact-title p {
    color: var(--text-muted);
}

/* grid layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

/* form */
.contact-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-light);
    font-size: 0.98rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.03);
}

/* button */
.contact-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: var(--primary-color);
    color: var(--bg-dark-1);
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: background .25s;
}

.contact-btn:hover {
    background: var(--primary-strong);
}

/* contact info card */
.contact-info {
    padding: 28px;
    border-radius: 14px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.contact-info h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* small accent divider */
.info-divider {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 6px;
    margin: 18px 0;
}

/* Map specific styles */
.contact-map {
    margin-top: 25px;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 300px;
    background: #1a1a1a;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* =========================================================
   FOOTER MODERNO
========================================================= */
.footer-modern {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.35));
    padding: 64px 20px 40px;
    color: var(--text-light);
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    align-items: start;
}

.footer-col.brand p {
    color: #cbd8ce;
    line-height: 1.6;
    max-width: 300px;
}

.footer-brand-logo {
    width: 130px;
    display: block;
    margin-bottom: 16px;
}

.footer-col h4 {
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 12px;
}

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

.footer-col ul li {
    margin-bottom: 10px;
    color: #cbd8ce;
}

.footer-col ul li a {
    color: #cbd8ce;
    text-decoration: none;
    transition: color .2s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-col ul li span {
    color: var(--primary-color);
    margin-right: 8px;
}

/* footer bottom */
.footer-bottom {
    text-align: center;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================================
   SMALLER SCREEN / RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
    #main-header {
        width: 92%;
    }

    .logo-container {
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #main-header.scrolled .logo-container {
        left: 20px;
        transform: translateY(-50%);
    }

    .nosotros-container {
        gap: 40px;
    }

    .footer-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    #main-header {
        top: 12px;
        height: 62px;
        padding: 0 14px;
        width: 95%;
        transform: translateX(-50%);
        left: 50%;
    }

    .nav-group {
        display: none;
    }

    /* optionally add a hamburger menu */
    .logo-container {
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hero {
        padding: 0 4%;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        margin-left: 0;
        margin-right: 0;
        align-items: center;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 18px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-map {
        height: 250px;
        /* Slightly smaller on mobile */
    }

    .nosotros-container {
        flex-direction: column;
        gap: 32px;
    }

    .collage-img {
        position: relative;
        width: 80%;
        height: auto;
        margin-bottom: 18px;
        transform: none;
    }

    .footer-wrapper {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

/* =========================================================
   SMALL STYLE HELPERS
========================================================= */
.hidden {
    display: none !important;
}

.center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* =========================================================
   END OF FILE
========================================================= */

/* =============================
   SECCIÓN NUESTRAS DIVISIONES
==============================*/
/* =============================
   SECCIÓN NUESTRAS DIVISIONES
==============================*/

.dynamic-section {
    position: relative;
    overflow: hidden;
    padding: 60px 0 100px;
    background: #1c282a;
}

/* Contenido centrado */
.divisions-section {
    position: relative;
    z-index: 2;
    width: 85%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
    /* Reducido desde 140px */
}

/* =============================
   FILAS (INTERCALADAS)
==============================*/

.division-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    /* Reducido */
    margin: 60px 0;
    /* Reducido desde 160px */
}

.division-row.inverse {
    flex-direction: row-reverse;
}

/* =============================
   IMÁGENES
==============================*/

.division-image {
    flex: 0.95;
    /* Imagen más estrecha */
}

.division-image img {
    width: 100%;
    height: 300px;
    /* Tamaño ideal */
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
    transition: transform .35s ease;
}

.division-image img:hover {
    transform: scale(1.03);
}

/* =============================
   TEXTO
==============================*/

.division-text {
    flex: 1;
    max-width: 650px;
}

.division-text h2 {
    font-size: 2.4rem;
    color: #75b344;
    margin-bottom: 15px;
}

.division-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #e9e9e9;
    margin-bottom: 25px;
}

/* =============================
   BOTÓN
==============================*/

.division-btn {
    padding: 12px 28px;
    background: #6cb03a;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: .3s;
}

.division-btn:hover {
    background: #75b344;
    transform: translateY(-3px);
}

/* =============================
   FONDO DINÁMICO COMPLETO
==============================*/

.animated-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

/* Líneas animadas distribuidas por la altura total */
.animated-bg .line {
    position: absolute;
    width: 220%;
    height: 3px;
    left: -50%;
    background: rgba(117, 179, 68, 0.28);
    animation: moveLines 10s linear infinite;
    transform: rotate(12deg);
    opacity: 0.4;
}

@keyframes moveLines {
    from {
        transform: translateX(-40%) rotate(12deg);
    }

    to {
        transform: translateX(40%) rotate(12deg);
    }
}

/* Creamos 7 líneas, cada una en una posición diferente */
.animated-bg .line:nth-child(1) {
    top: 5%;
    animation-duration: 9s;
}

.animated-bg .line:nth-child(2) {
    top: 20%;
    animation-duration: 12s;
}

.animated-bg .line:nth-child(3) {
    top: 40%;
    animation-duration: 15s;
}

.animated-bg .line:nth-child(4) {
    top: 60%;
    animation-duration: 13s;
}

.animated-bg .line:nth-child(5) {
    top: 80%;
    animation-duration: 18s;
}

.animated-bg .line:nth-child(6) {
    top: 90%;
    animation-duration: 11s;
    opacity: 0.25;
}

.animated-bg .line:nth-child(7) {
    top: 50%;
    animation-duration: 20s;
    opacity: 0.15;
}

/* =============================
   FIGURAS GRANDES DIFUMINADAS
==============================*/

.shape {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.18;
    animation: floatShape 14s ease-in-out infinite alternate;
}

@keyframes floatShape {
    from {
        transform: translateY(-40px) rotate(0);
    }

    to {
        transform: translateY(40px) rotate(25deg);
    }
}

/* Tres figuras globales */
.shape1 {
    background: #75b344;
    top: 15%;
    left: -10%;
    animation-duration: 17s;
}

.shape2 {
    background: #24353c;
    top: 55%;
    right: -12%;
    animation-duration: 22s;
}

.shape3 {
    background: #6cb03a;
    bottom: 8%;
    left: 65%;
    animation-duration: 19s;
}

/* Figura adicional por cada división */
.shape-division {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.20;
    animation: floatShape 16s ease-in-out infinite alternate;
}

/* Distribución */
.shape-division.d1 {
    background: #75b344;
    top: 28%;
    right: 14%;
}

.shape-division.d2 {
    background: #6cb03a;
    top: 48%;
    left: 20%;
}

.shape-division.d3 {
    background: #24353c;
    top: 72%;
    right: 18%;
}

/* ===============================
   TITULOS DE LA SECCIÓN
================================*/

.division-header {
    text-align: center;
    padding: 30px 20px 40px;
    position: relative;
    z-index: 5;
    max-width: 900px;
    margin: 0 auto;
}

.division-main-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.division-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 750px;
    margin: 0 auto;
    color: #e6e6e6;
    /* Color claro para que se vea bien sobre el fondo dinámico */
    padding: 10px 15px;
    border-radius: 14px;
    backdrop-filter: none;
    background: transparent;
}

/* =========================================================
   GEOMETRIC SHAPES FOR DIVISIONS
========================================================= */
/* Common shape styling */
.division-image {
    position: relative;
    z-index: 1;
    /* Ensure image is above shape base */
}

.division-image::before,
.division-image::after {
    content: "";
    position: absolute;
    background: var(--primary-color);
    opacity: 0.15;
    z-index: 2;
    pointer-events: none;
    transition: all 0.5s ease;
}

/* 1. BUSINESS SCHOOL: Rectangles / Squares (Structure & Knowledge) */
.division-school .division-image::before {
    width: 140px;
    height: 140px;
    top: -20px;
    left: -20px;
    border-radius: 12px;
    transform: rotate(-10deg);
}

.division-school .division-image::after {
    width: 100px;
    height: 100px;
    bottom: -15px;
    right: -15px;
    border-radius: 8px;
    background: transparent;
    border: 4px solid var(--primary-color);
    transform: rotate(15deg);
}

.division-school:hover .division-image::before {
    transform: rotate(0deg) scale(1.1);
}

.division-school:hover .division-image::after {
    transform: rotate(45deg) scale(1.1);
}

/* 2. FUNDACIÓN CCEG: Circles (Community & Unity) */
.division-foundation .division-image::before {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    top: -30px;
    right: -30px;
    /* Right side for Foundation layout */
}

.division-foundation .division-image::after {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    bottom: -20px;
    left: -20px;
    opacity: 0.1;
}

.division-foundation:hover .division-image::before {
    transform: scale(1.1);
}

.division-foundation:hover .division-image::after {
    transform: scale(1.2);
}

/* 3. CONSULTING: Triangles/Polygons (Direction & Growth) */
.division-consulting .division-image::before {
    width: 160px;
    height: 160px;
    top: -25px;
    left: -25px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: var(--primary-color);
    transform: rotate(-15deg);
}

.division-consulting .division-image::after {
    width: 120px;
    height: 120px;
    bottom: -25px;
    right: -15px;
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    background: var(--primary-color);
    opacity: 0.2;
}

.division-consulting:hover .division-image::before {
    transform: rotate(0deg) translateY(-10px);
}


/* =========================================================
   CONNECTOR PATH (WORM)
========================================================= */
.connector-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind images/text */
    pointer-events: none;
    overflow: visible;
}

.connector-path path {
    stroke: var(--primary-color);
    stroke-width: 3px;
    fill: none;
    stroke-dasharray: 10, 10;
    opacity: 0.4;
    filter: drop-shadow(0 0 5px var(--primary-color));
    animation: dashScroll 60s linear infinite;
}

@keyframes dashScroll {
    to {
        stroke-dashoffset: -1000;
    }
}

/* =========================================================
   HEADER SOCIAL ICONS (SCROLL ONLY)
========================================================= */
.header-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.header-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    /* WhatsApp Green or Primary Color */
    color: var(--primary-color);
    background: rgba(117, 179, 68, 0.15);
    transition: all 0.3s ease;
}

.header-social-icons a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.header-social-icons a:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(117, 179, 68, 0.4);
}

/* SHOW ONLY WHEN SCROLLED */
#main-header.scrolled .header-social-icons {
    opacity: 1;
    transform: translateX(0);
}


/* =========================================================
   MOBILE MENU & OVERLAY
   ========================================================= */
/* Desktop Only Utility */
@media (min-width: 901px) {

    .mobile-menu-btn,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Hamburger Button */
.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: 0.3s;
}

/* Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 70px;
    /* Start below the header */
    left: 0;
    width: 100%;
    height: calc(100% - 70px);
    background: rgba(255, 255, 255, 0.98);
    /* White overlay */
    backdrop-filter: blur(10px);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Align to top */
    padding-top: 40px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-links a {
    color: var(--bg-dark-1);
    /* Dark text */
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.mobile-nav-links a:hover {
    color: var(--primary-color);
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    border: none;
    background: none;
    color: var(--bg-dark-1);
    cursor: pointer;
}

/* LIGHT MODE SUPPORT FOR MOBILE MENU */
body.light-mode .mobile-menu-overlay {
    background: rgba(255, 255, 255, 0.98);
}

body.light-mode .mobile-nav-links a {
    color: var(--bg-dark-1);
}

body.light-mode .close-menu-btn {
    color: var(--bg-dark-1);
}

/* =========================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================= */

/* TABLET (Max-width 992px) */
@media (max-width: 992px) {
    #main-header {
        width: 90%;
        max-width: none;
        justify-content: space-between;
    }

    .brand-text {
        display: none !important;
    }

    /* Hide desktop navs */
    .nav-group.desktop-only {
        display: none !important;
    }

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

/* MOBILE (Max-width 768px) */
@media (max-width: 768px) {

    /* --- HEADER --- */
    #main-header,
    #main-header.scrolled {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 80px;
        top: 10px;
        left: 0;
        margin: 0;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        padding: 0;
        gap: 0;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none;
        pointer-events: none;
    }

    body.light-mode #main-header {
        background: transparent !important;
        box-shadow: none !important;
    }

    .logo-container,
    #main-header.scrolled .logo-container {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
        padding: 14px;
        z-index: 2000;
    }

    .logo-container img {
        padding: 0;
        width: 100%;
    }

    /* Reset and hide old navs explicitly */
    .nav-group.left,
    .nav-group.right {
        display: none !important;
    }

    /* --- HERO --- */
    .hero-content {
        padding: 140px 20px 0;
        /* Huge top padding to clear the logo */
        text-align: center !important;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .cta-button {
        margin: 0 auto;
    }

    /* --- NOSOTROS --- */
    .nosotros-container {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .nosotros-left,
    .nosotros-collage {
        width: 100%;
    }

    /* Hide Nosotros images on mobile as requested */
    .nosotros-collage {
        display: none !important;
    }

    /* --- DIVISIONES --- */
    .division-header {
        padding: 20px;
    }

    .division-main-title {
        font-size: 2rem;
    }

    .shape,
    .shape-division {
        transform: scale(0.6);
        opacity: 0.5;
    }

    .division-row {
        flex-direction: column !important;
        text-align: center;
        gap: 30px;
    }

    .division-row.normal.division-foundation {
        flex-direction: column-reverse !important;
    }

    .division-image img {
        width: 100%;
        max-width: 400px;
    }

    .connector-path {
        opacity: 0.1;
    }

    /* --- FOOTER --- */
    .footer-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    /* --- FLOATING BUTTON --- */
    .theme-toggle-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* =========================================================
   LIGHT MODE OVERRIDES
   ========================================================= */

/* Activation Class on Body */
body.light-mode {
    background: #ffffff;
    color: var(--bg-dark-1);
}

/* Sections Backgrounds */
body.light-mode .nosotros,
body.light-mode .dynamic-section,
body.light-mode .contact-section {
    background-color: var(--white);
}

/* Text Colors */
body.light-mode .nosotros-text,
body.light-mode .contact-title h2,
body.light-mode .form-group label,
body.light-mode .contact-info h3 {
    color: var(--bg-dark-1);
}

body.light-mode .contact-title p,
body.light-mode .division-text p,
body.light-mode .division-subtitle,
body.light-mode .contact-info p {
    color: #555;
    text-shadow: none;
}

/* Forms & Cards overrides */
body.light-mode .contact-form,
body.light-mode .contact-info {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: none;
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
    background: #f9f9f9;
    color: var(--bg-dark-1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .contact-form input:focus,
body.light-mode .contact-form textarea:focus {
    background: #ffffff;
    border-color: var(--primary-color);
}

/* Adjust Service Cards for Light Mode if needed */
body.light-mode .service-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .service-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.95));
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .service-content h3 {
    color: var(--bg-dark-1);
}

body.light-mode .service-content p {
    color: #444;
}

/* New Theme Switch Styles */
.theme-switch-wrapper {
    position: relative;
    display: inline-block;
}

.theme-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.theme-label {
    width: 60px;
    height: 30px;
    background-color: var(--bg-dark-2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.switch-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    padding: 0 5px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    box-sizing: border-box;
    align-items: center;
    user-select: none;
}

.switch-knob {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Checked State (Light Mode) */
.theme-checkbox:checked+.theme-label .switch-knob {
    transform: translateX(30px);
    background: #fff;
}

.theme-checkbox:checked+.theme-label {
    background-color: var(--primary-color);
    border-color: transparent;
}

/* Icons Opacity based on state */
.icon-sun,
.icon-moon {
    transition: opacity 0.3s;
    z-index: 0;
}

/* When dark (unchecked), show moon on right? Or just show both dimmed? 
   Let's just keep them visible. */

/* Default State: Hide Desktop Switch (User wants it only on "Expanded"/Scrolled mode) */
.nav-group .theme-switch-wrapper {
    display: none;
}

/* Scrolled Header Adjustment */
#main-header.scrolled .theme-label {
    border-color: rgba(0, 0, 0, 0.1);
    background-color: #f1f1f1;
}

#main-header.scrolled .theme-switch-wrapper {
    display: inline-block !important;
}

#main-header.scrolled .theme-checkbox:checked+.theme-label {
    background-color: var(--primary-color);
}

/* Mobile Switch Customization */
.mobile-switch .theme-label {
    width: 70px;
    height: 36px;
}

.mobile-switch .switch-knob {
    width: 30px;
    height: 30px;
}

.mobile-switch .theme-checkbox:checked+.theme-label .switch-knob {
    transform: translateX(32px);
}

/* FOOTER EXEMPTION FOR LIGHT MODE: Always Dark */
body.light-mode .footer-modern {
    background: linear-gradient(135deg, var(--bg-dark-1), var(--bg-dark-2));
    color: var(--text-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .footer-col h4 {
    color: var(--primary-color);
}

body.light-mode .footer-col ul li,
body.light-mode .footer-col ul li a,
body.light-mode .footer-col.brand p,
body.light-mode .footer-bottom {
    color: #cbd8ce !important;
}

body.light-mode .footer-col ul li a:hover {
    color: var(--primary-color) !important;
}

/* FINAL FORCE OVERRIDES FOR MOBILE HEADER ALIGNMENT */
@media (max-width: 768px) {

    .logo-container,
    #main-header .logo-container,
    #main-header.scrolled .logo-container {
        position: fixed !important;
        /* Switch to fixed to ignore header parent flow */
        top: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        width: 80px !important;
        height: 80px !important;
        border-radius: 50% !important;
        background: #ffffff !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 9999 !important;
        /* Max z-index */
        pointer-events: auto !important;
    }

    .logo-container img {
        width: 100% !important;
        height: auto !important;
        padding: 10px !important;
        /* Ensure logo isn't touching edges */
    }

    #main-header {
        pointer-events: none !important;
        /* Click through header bar */
        background: transparent !important;
    }
}

/* =========================================================
   NOVEDADES / FLASH NEWS SECTION
========================================================= */
.flash-news-section {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
    position: relative;
    overflow: hidden;
}

/* --- UPDATE TICKER --- */
.news-ticker-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 50px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ticker-label {
    background: var(--primary-color);
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}

.ticker-track {
    display: inline-block;
    padding-left: 100%;
    animation: tickerScroll 30s linear infinite;
}

.ticker-item {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-right: 60px;
    display: inline-flex;
    align-items: center;
}

.ticker-item strong {
    color: var(--primary-color);
    margin: 0 6px 0 8px;
}

@keyframes tickerScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/*Pause on hover*/
.news-ticker-container:hover .ticker-track {
    animation-play-state: paused;
}


/* --- HORIZONTAL FLASH CARDS --- */
.flash-cards-wrapper {
    width: 100%;
    overflow: hidden;
    /* Hide scrollbar for clean marquee */
    padding-bottom: 40px;
    /* Space for scrollbar/shadows */
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.flash-cards-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.flash-cards-track {
    display: flex;
    gap: 24px;
    width: max-content;
    padding: 0 20px;
    animation: cardScroll 40s linear infinite;
}

/* Pause on hover */
.flash-cards-wrapper:hover .flash-cards-track {
    animation-play-state: paused;
}

@keyframes cardScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Moves half the width (the first set of cards), creating a seamless loop with the duplicate set */
}

.flash-card {
    width: 300px;
    flex-shrink: 0;
    background: var(--bg-dark-2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.flash-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 22px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(117, 179, 68, 0.2);
    background: linear-gradient(145deg, var(--bg-dark-2), #1f2d30);
}

.flash-image-container {
    width: 100%;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
}

.flash-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.flash-card:hover .flash-image-container img {
    transform: scale(1.08);
}

/* Adjust card height for image ones */
.flash-card.has-image {
    padding: 16px;
    gap: 8px;
    width: 280px;
}

.flash-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.bg-school {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.bg-foundation {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.bg-consulting {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.flash-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 4px;
}

.flash-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.flash-content p {
    font-size: 0.9rem;
    color: #b0bdc5;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flash-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    /* Push to bottom */
    display: inline-block;
    transition: transform 0.2s;
}

.flash-link:hover {
    transform: translateX(4px);
}

/* Light Mode Overrides */
body.light-mode .flash-news-section {
    background: linear-gradient(180deg, #f3f4f6 0%, #ffffff 100%);
}

body.light-mode .news-ticker-container {
    background: white;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

body.light-mode .ticker-item {
    color: var(--bg-dark-1);
}

body.light-mode .flash-card {
    background: white;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.light-mode .flash-card:hover {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.light-mode .flash-content h4 {
    color: var(--bg-dark-1);
}

body.light-mode .flash-content p {
    color: #666;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    /* Adjust container padding */
    .flash-news-section {
        padding: 60px 0;
    }

    /* Ticker: Keep horizontal but smaller, or stack if preferred. 
       Let's keep it horizontal scrolling but compacted */
    .news-ticker-container {
        flex-direction: row;
        height: 40px;
        margin-bottom: 30px;
        width: 100%;
        border-radius: 4px;
        /* Less rounded on mobile to save space? or keep consistent */
        border-radius: 30px;
    }

    .ticker-label {
        font-size: 0.7rem;
        padding: 0 12px;
        letter-spacing: 0.5px;
    }

    .ticker-item {
        font-size: 0.85rem;
        margin-right: 30px;
    }

    /* Cards: Auto-scroll is good, but let's make them slightly smaller/responsive */
    .flash-cards-wrapper {
        padding-bottom: 20px;
        mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
    }

    .flash-cards-track {
        gap: 16px;
        padding: 0 10px;
        /* Speed up slightly on mobile? or keep same */
        animation-duration: 30s;
    }

    .flash-card {
        width: 240px;
        /* narrowed for mobile screens */
        padding: 18px;
        gap: 10px;
    }

    .flash-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .flash-content h4 {
        font-size: 1rem;
    }

    .flash-content p {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
        /* Show a bit more text if needed or keep 2 */
        line-clamp: 3;
    }
}

@media (max-width: 480px) {

    /* Ultra small screens */
    .ticker-label {
        display: none;
        /* Hide label to give full width to text? or keep icon only? */
    }

    .ticker-wrapper {
        mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent);
    }

    /* Re-add a small icon or text if label is hidden? 
       Actually, let's keep label but make it just an icon if possible. 
       For now, just reduce padding. */
    .ticker-label {
        display: flex;
        padding: 0 8px;
        font-size: 0.65rem;
    }
}

/* =========================================================
   FLOATING WHATSAPP BUTTON
========================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: #ffffff;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #20ba5a;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

/* Animations */
.whatsapp-float {
    animation: floatIn 1s cubic-bezier(0.2, 0.9, 0.3, 1) backwards;
    animation-delay: 1.5s;
    /* Show after initial load */
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.5);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}