/* ===== VARIABLES Y CONFIGURACIÓN GLOBAL ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-color: #fdfdfd;
    --text-color: #333;
    --main-color: #a02b93;
    --white-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

*::selection {
    background: var(--main-color);
    color: var(--bg-color);
}

.dark-mode {
    --bg-color: #0b061f;
    --text-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .7);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* ===== COMPONENTES REUTILIZABLES ===== */
.heading {
    font-size: 4.5rem;
    text-align: center;
}

span {
    color: var(--main-color);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 7%;
    background: transparent;
    display: flex;
    align-items: center;
    z-index: 100;
    transition: .5s;
}

.header.sticky {
    background: var(--bg-color);
    box-shadow: 0 .1rem 1rem var(--shadow-color);
}

.logo-container {
    height: 4rem;
    width: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-right: 3rem;
}

.logo-container img {
    width: 155%;
    height: 140%;
}

.logo {
    font-size: 2.5rem;
    color: var(--main-color);
    font-weight: 600;
    margin-right: auto;
}

.navbar a {
    position: relative;
    font-size: 1.7rem;
    color: var(--white-color);
    font-weight: 500;
    margin-right: 3.5rem;
    transition: color 0.3s ease;
}

.header.sticky .navbar a {
    color: var(--text-color);
}

.navbar a.active {
    color: var(--white-color);
}

.header.sticky .navbar a.active {
    color: var(--main-color);
}

.navbar a.active::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: .2rem;
    background: var(--white-color);
}

.header.sticky .navbar a::before {
    background: var(--main-color);
    opacity: .7;
}

#darkMode-icon {
    font-size: 2.4rem;
    color: var(--white-color);
    cursor: pointer;
}

.header.sticky #darkMode-icon {
    color: var(--text-color);
    opacity: .9;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

/* ===== SECCIONES GENERALES ===== */
section {
    min-height: 100vh;
    padding: 10rem 7% 2rem;
}

/* ===== HOME SECTION ===== */
.home {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.home .home-content {
    max-width: 57rem;
    z-index: 2; /* Asegurar que esté sobre el profession-box */
    position: relative;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: .3;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    margin-bottom: .3rem;
}

.home-content p {
    font-size: 1.6rem;
}

.home-content .social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 2rem;
    color: var(--main-color);
    margin: 2.5rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.home-content .social-media a:hover {
    background: var(--main-color);
    color: var(--white-color);
}

.home .profession-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
}

.home .profession-container .profession-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 768px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: professionRotate 15s ease-out infinite;
}

@keyframes professionRotate {
    0%, 20% { transform: rotate(0deg); }
    25%, 45% { transform: rotate(-90deg); }
    50%, 70% { transform: rotate(-180deg); }
    75%, 95% { transform: rotate(-270deg); }
    100% { transform: rotate(-360deg); }
}

.home .profession-box .profession {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    width: 90px;
    flex-direction: column;
    color: var(--main-color);
    transform: rotate(calc(360deg / 4 * var(--i)));
    transform-origin: 390px;
    background: transparent;
    padding: 13px 0;
}

.profession::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 90px;
    background-color: var(--bg-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.home .profession-box .profession:nth-child(1) i {
    margin-right: 15px;
}

.home .profession-box .profession:nth-child(2),
.home .profession-box .profession:nth-child(4) {
    padding-bottom: 20px;
}

.home .profession i {
    font-size: 3.5rem;
}

.home .profession h3 {
    font-size: 3.2rem;
    line-height: 1;
    font-weight: 600;
    text-align: center;
}

.home .profession-box .circle {
    width: 700px;
    height: 700px;
    border: 3px solid var(--main-color);
    border-radius: 50%;
    z-index: -1;
}

.home .profession-container .overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 50vh solid var(--main-color);
    border-right: 384px solid var(--main-color);
    border-bottom: 50vh solid var(--main-color);
    border-left: 384px solid transparent;
}

.home-img {
    max-width: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(30%, -41%);
}

.home-img img {
    width: 80%;
    height: 80%;
}

/* ===== ABOUT SECTION ===== */
.about {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-img img {
    width: 30vw;
    margin-top: -5rem;
}

.about-content {
    min-width: 55%;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.about-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.about-fact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 1rem;
    box-shadow: 0 0.2rem 1rem var(--shadow-color);
    transition: transform 0.3s ease;
    justify-content: center;
}

.about-fact:hover {
    transform: translateY(-5px);
}

.about-fact i {
    font-size: 3rem;
    color: var(--main-color);
    margin-right: 1.5rem;
    min-width: 3rem;
}

.fact-text h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--main-color);
}

.fact-text p {
    margin: 0.3rem 0 0 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ===== ALCANCE SECTION (CARRUSEL DE BANDERAS) ===== */
.alcance-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: auto;
    padding: 8rem 7% 4rem;
    position: relative;
}

.alcance-content {
    flex: 1;
    min-width: 0;
}

/* Carrusel para desktop - visible por defecto */
.flags-gallery-desktop {
    overflow: hidden;
    position: relative;
    margin: 3rem 0;
    width: 100%;
    max-width: 100%;
    display: block;
    min-height: fit-content;
}

/* Carrusel para móvil - oculto por defecto */
.flags-gallery-mobile {
    overflow: hidden;
    position: relative;
    margin: 2rem 0 0 0;
    width: 100%;
    max-width: 100%;
    display: none;
}

.flags-carousel {
    display: flex;
    gap: 3rem;
    animation: scrollFlags 30s linear infinite;
    width: max-content;
    
}

@keyframes scrollFlags {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1.5rem));
    }
}

.flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
    min-width: 10px;
}

.flag-lg {
    font-size: 7rem !important;
    width: 100px;
    min-height: 70px;
    object-fit: cover;
}

.country-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    text-align: center;
}

.country-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    line-height: 1.2;
}

.country-subtitle {
    font-size: 1rem;
    color: var(--text-color);
    text-align: center;
    line-height: 1.2;
}

.alcance-img {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.alcance-img img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Asegurar que las banderas se muestren correctamente */
.fi {
    background-size: cover;
    display: inline-block;
    line-height: 1em;
}

/* ===== SERVICES SECTION ===== */
.services { 
    min-height: 100vh; 
    padding-bottom: 20px; 
}

.services h2 { 
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.2; 
}

.services p { 
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.services .services-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 0.8rem;
}

.services-container .services-box { 
    flex: 1 1 30rem; 
    min-height: 210px; 
    background: var(--bg-color); 
    padding: 1rem 1rem 1rem; 
    border-radius: 2rem; 
    box-shadow: 0 .1rem .5rem var(--shadow-color); 
    text-align: center; 
    border-top: .6rem solid var(--main-color); 
    border-bottom: .6rem solid var(--main-color); 
    transition: .5s ease; 
    position: relative; 
}

.services-container .services-box:hover { 
    box-shadow: 0 .1rem 2rem var(--shadow-color); 
    transform: scale(1.02); 
}

.services-box i { 
    font-size: 7rem; 
    color: var(--main-color); 
}

.services-box h3 { 
    font-size: 2.6rem; 
    transition: .5s ease; 
}

.services-box:hover h3 { 
    color: var(--main-color); 
}

.services-box p { 
    font-size: 1.6rem; 
    margin: 1rem 0 3rem; 
    color: var(--text-color); 
    display: none; 
    text-wrap: pretty; 
    text-align: justify; 
}

.services__show-text {
    display: none;
    background: transparent;
    border: none;
    color: var(--main-color);
    font-size: 1.6rem;
    font-weight: 500;
    margin-top: 1rem;
    text-align: center;
    width: 100%;
    cursor: pointer;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.card {
    width: 320px;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 1rem;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
    text-align: left;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #222;
}

.card-text {
    font-size: 1.4rem;
    color: #555;
    line-height: 1.6;
    display: none;
}

.card.active .card-text {
    display: block;
}

.card.active .services__show-text::after {
    content: 'Ocultar descripción';
}

.card:not(.active) .services__show-text::after {
    content: 'Leer más';
}

/* ===== CONTACT SECTION ===== */
.contact {
    min-height: 100vh;
    height: 100vh;
    padding: 10rem 7% 2rem;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
}

.contact h2 {
    margin-bottom: 3rem;
    text-align: center;
    flex-shrink: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-info h3 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--main-color);
}

.contact-info > p {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.contact-methods {
    margin-bottom: 3rem;
    flex: 1;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 1rem;
    box-shadow: 0 0.2rem 1rem var(--shadow-color);
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
}

.contact-method i {
    font-size: 3rem;
    color: var(--main-color);
    margin-right: 1.5rem;
    min-width: 3rem;
}

.contact-method h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-method p {
    font-size: 1.4rem;
    color: var(--text-color);
    opacity: 0.8;
}

.direct-contact {
    flex-shrink: 0;
    margin-top: auto;
}

.direct-contact h4 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-whatsapp, .btn-email {
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 2rem;
    border-radius: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: transparent;
    border-color: #25D366;
    color: #25D366;
}

.btn-email {
    background: var(--main-color);
    color: white;
}

.btn-email:hover {
    background: transparent;
    border-color: var(--main-color);
    color: var(--main-color);
}

.btn-whatsapp i, .btn-email i {
    font-size: 2rem;
    margin-right: 0.8rem;
}

/* ===== CALENDLY SECTION ===== */
.calendly-section {
    background: var(--bg-color);
    border-radius: 1.5rem;
    box-shadow: 0 1rem 3rem var(--shadow-color);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 200px);
}

.calendly-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    overflow: auto;
}

.calendly-placeholder {
    text-align: center;
    color: var(--text-color);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.calendly-placeholder i {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.calendly-placeholder h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.calendly-placeholder > p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* ===== CONTACT CHANNELS ===== */
.contact-channels {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.contact-channel {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: var(--bg-color);
    border-radius: 1rem;
    box-shadow: 0 0.3rem 1rem var(--shadow-color);
    transition: all 0.3s ease;
    min-width: 180px;
    border: 1px solid rgba(160, 43, 147, 0.1);
}

.contact-channel:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem var(--shadow-color);
}

.contact-channel i {
    font-size: 2.2rem;
    color: var(--main-color);
    flex-shrink: 0;
}

.channel-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.channel-detail {
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
}

.calendly-text {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

.btn-calendly {
    background: var(--main-color);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 0.8rem;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.5rem 1.5rem rgba(160, 43, 147, 0.3);
}

.btn-calendly:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.8rem 2rem rgba(160, 43, 147, 0.4);
}

/* ===== FLOATING BUTTON ===== */
.floating-button-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.floating-button {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--main-color), #8a2be2);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    box-shadow: 0 0.5rem 1.5rem rgba(160, 43, 147, 0.4);
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.floating-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.8rem 2rem rgba(160, 43, 147, 0.6);
    background: linear-gradient(135deg, #8a2be2, var(--main-color));
}

.floating-button i {
    font-size: 2rem;
}

.floating-button span {
    white-space: nowrap;
    color: #fdfdfd;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===== FOOTER ===== */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 7%;
    background: var(--main-color);
}

.footer-text p {
    font-size: 1.6rem;
    color: var(--white-color);
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--white-color);
    border-radius: .8rem;
    border: .2rem solid var(--main-color);
    outline: .2rem solid transparent;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    outline-color: var(--white-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: #333;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1300px) {
    html { font-size: 55%; }
    .home .profession-container .profession-box { right: -10%; }
    .home .profession-container .overlay { right: -6%; }
    .home .home-content { max-width: 50rem; }
}

@media (max-width: 1100px) {
    .home .profession-container .profession-box { right: -15%; }
    .home .home-content { max-width: 45rem; }
}

@media (max-width: 1024px) {
    .header { padding: 2rem 3%; }
    section { padding: 10rem 3% 2rem; }
    .home .profession-container .profession-box { right: -20%; }
    .home .profession-container .overlay { right: -12%; }
    .home .home-content { max-width: 42rem; }
}

@media (max-width: 991px) {
    .navbar a.active::before { background: var(--main-color); opacity: .7; }
    .navbar a:nth-child(2) { color: var(--main-color); }
    .navbar a:nth-child(1) { color: var(--main-color); }
    /* .navbar a { color: var(--text-color); }
    .navbar a.active { color: var(--main-color); } */
    .navbar a::before { display: none; }
    .home .home-content { max-width: 50rem; }
    .home .profession-container .profession-box { right: -35%; }
    .home .profession-container .overlay { right: -30%; }
    .home-img img { display: none; }
    .footer { padding: 2rem 3%; }
    .contact-container { grid-template-columns: 1fr; gap: 3rem; }
    .contact { height: auto; min-height: 100vh; }
    .calendly-section { max-height: none; height: auto; }
    
    .about {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .about-content h2 {
        text-align: center;
    }
    
    .flags-gallery-desktop { 
        width: 90%; 
        margin: 2.5rem auto; 
    }
    
    .flags-carousel { 
        gap: 2rem; 
        animation-duration: 40s;
    }
    
    .country-info { 
        font-size: 0.85rem; 
    }
    
    .about-img img {
        width: 70vw;
        margin-top: -3rem;
    }
}

@media (max-width: 896px) {
    .navbar a:nth-child(1) { color: var(--main-color); }
    .home .profession-container .profession-box { right: -50%; }
    .home .profession-container .overlay { right: -43%; }
}

@media (max-width: 780px) {
    .navbar a:nth-child(1) { color: var(--white-color); }
}

@media (max-width: 768px) {
    #menu-icon { display: block; }
    #darkMode-icon { position: absolute; right: 7rem; font-size: 2.6rem; color: var(--text-color); margin-bottom: .1rem; }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 0.7rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
        display: none;
    }
    
    .navbar.active { display: block; }
    .navbar a { display: block; font-size: 2rem; margin: 3rem 0; color: var(--text-color); }
    .navbar a:nth-child(1), .navbar a:nth-child(2) { color: var(--text-color); }
    .navbar a.active { color: var(--main-color); }
    .navbar a::before { display: none; }
    
    .home {
        padding: 0 3% 23rem;
        justify-content: center;
        text-align: center;
        position: relative;
        min-height: 100vh;
        top: 50px;
    }
    
    .home .home-content { min-width: 100%; max-width: 100%; }
    .home-content h3 { font-size: 2.6rem; }
    .home-content h1 { font-size: 5rem; }
    .home-content .social-media a { margin: 2.5rem .75rem 3rem; }
    
    .home .profession-container { left: 0; min-width: 100%; min-height: 100%; }
    .home .profession-container .profession-box { position: fixed; top: 450px; left: 0; width: 100%; right: auto; }
    .home .profession-box .profession { width: 237px; padding: 0 13px; left: auto; transform-origin: 0; }
    .home .profession-box .profession:nth-child(1) { transform: rotate(-90deg) translate(-120px, -210px); }
    .home .profession-box .profession:nth-child(1) i { margin-right: 0; }
    .home .profession-box .profession:nth-child(2) { transform: rotate(0deg) translate(0, -325px); }
    .home .profession-box .profession:nth-child(3) { transform: rotate(90deg) translate(-115px, -450px); }
    .home .profession-box .profession:nth-child(4) { transform: rotate(180deg) translate(-240px, -325px); }
    .home .profession-box .circle { position: fixed; width: 670px; height: 670px; z-index: -1; }
    .home .profession-container .overlay { position: fixed; top: 70rem; left: 50%; right: 0; transform: rotate(90deg) translate(-50%, 50%) scaleY(3); border-width: 23.9rem; }
    
    .about { flex-direction: column; text-align: center; }
    .about-content h2 { text-align: center; }
    .about-img img { width: 70vw; margin-top: -3rem; }
    
    .contact-buttons { flex-direction: column; }
    .btn-whatsapp, .btn-email { justify-content: center; }
    .contact-channels { flex-direction: column; gap: 1rem; align-items: center; }
    .contact-channel { min-width: 250px; justify-content: center; }
    
    .floating-button-container { bottom: 1.5rem; right: 1.5rem; }
    .floating-button { padding: 1rem 1.5rem; font-size: 1.4rem; }
    .floating-button span { display: none; }
    .floating-button i { font-size: 2.4rem; margin: 0; }

    /* Ocultar carrusel desktop en móviles */
    .flags-gallery-desktop {
        display: none;
    }
    
    /* Mostrar carrusel móvil en móviles */
    .flags-gallery-mobile {
        display: block;
        width: 95%; 
        margin: 2rem auto 0 auto;
    }
    
    .flags-carousel { 
        gap: 1.5rem; 
        animation-duration: 45s; 
    }
    
    .flag-item { 
        transform: scale(0.9); 
        min-width: 100px;
    }
    
    .flag-lg {
        font-size: 5rem !important;
        width: 100px;
        height: 40px;
    }
    
    .country-info { 
        font-size: 0.8rem; 
    }
    
    .about {
        padding: 8rem 3% 4rem;
    }

    .profession::before {
        content: '';
        position: absolute;
        width: 210px;
        height: 60px;
        background-color: var(--bg-color);
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: -1;
    }
}

@media (max-width: 450px) {
    html { font-size: 50%; }
    #darkMode-icon { right: 6rem; }
    
    .home-content { padding: 20px 3% 23rem; justify-content: center; text-align: center; }
    .home .profession-box .profession:nth-child(1) { transform: rotate(-90deg) translate(-120px, -170px); }
    .home .profession-box .profession:nth-child(2) { transform: rotate(0deg) translate(0px, -280px); }
    .home .profession-box .profession:nth-child(3) { transform: rotate(90deg) translate(-120px, -410px); }
    .home .profession-box .profession:nth-child(4) { transform: rotate(180deg) translate(-235px, -280px); }
    .home .profession-box .circle { position: fixed; width: 500px; height: 500px; z-index: -1; }
    .home .profession-container .overlay { position: fixed; top: 90%; left: 50%; right: 0; transform: rotate(90deg) translate(-70%, 50%) scaleY(3); border-width: 23.9rem; }
    
    .services .services-container .services-box { min-height: auto; }
    .services__show-text { position: initial; }
    .footer { flex-direction: column-reverse; }
    .footer p { text-align: center; margin-top: 2rem; }
    
    .contact-channel { min-width: 100%; padding: 1.2rem; justify-content: center;}
    .contact-channel i { font-size: 2.2rem; }
    .channel-detail { font-size: 1.2rem; }
    .calendly-placeholder { padding: 1rem; }
    .calendly-placeholder h3 { font-size: 1.8rem; }
    .calendly-placeholder > p { font-size: 1.3rem; }
    .btn-calendly { padding: 1rem 2rem; font-size: 1.3rem; }
    
    .flags-gallery { 
        width: 100%; 
        margin: 1.5rem auto; 
    }
    
    .flags-carousel { 
        gap: 1rem; 
        animation-duration: 50s; 
    }
    
    .flag-item { 
        transform: scale(0.8); 
        min-width: 80px;
    }
    
    .flag-lg {
        font-size: 4rem !important;
        width: 100px;
        height: 35px;
    }
    
    .country-info { 
        font-size: 0.7rem; 
    }
}

@media (max-width: 365px) {
    .about-img img { width: 90vw; }
    .footer { flex-direction: column-reverse; }
    .footer p { text-align: center; margin-top: 2rem; }
    
    .flags-carousel { 
        gap: 0.8rem; 
        animation-duration: 55s; 
    }
    
    .flag-item { 
        transform: scale(0.75); 
        min-width: 70px;
    }
    
    .flag-lg {
        font-size: 3.5rem !important;
        width: 90px;
        height: 30px;
    }
    
    .country-info { 
        font-size: 0.65rem; 
    }
}

/* ===== CORRECCIÓN ADICIONAL: PROFESSION BOX BACKGROUND ===== */
.profession::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 90px;
    background-color: var(--bg-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

@media (max-width: 768px) {
    .profession::before {
        width: 210px;
        height: 60px;
    }
}