/*
 Theme Name: Hello Elementor Child
 Template: hello-elementor
 Version: 1.0
*/

/* ===== Base ===== */
:root{
    --container-max: 1200px;
    --accent: #4ade80;
    --bg: #000000;
    --panel: #111827;  /* gray-900 */
    --panel-2: #1f2937; /* gray-800 */
    --border: #374151; /* gray-700 */
    --text: #ffffff;
}

.country-bar{
    background: var(--bg);
    padding: 16px 0; /* py-4 */
}

.country-bar__container{
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px; /* px-4 */
}

/* ===== Desktop nav ===== */
.country-nav{
    display: none;             /* hidden md:flex */
    justify-content: center;   /* justify-center */
    gap: 32px;                 /* space-x-8 */
    overflow-x: auto;          /* overflow-x-auto */
    -webkit-overflow-scrolling: touch;
}

.country-link{
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: var(--text);
    text-decoration: none;
}

.country-link.is-active{
    color: var(--accent);
}

.country-link__text{
    font-size: 16px;     /* text-base */
    font-weight: 500;    /* font-medium */
    transition: transform 200ms ease, color 200ms ease;
}

.country-link:hover .country-link__text{
    transform: scale(1.10);   /* group-hover:scale-110 */
    color: var(--accent);     /* group-hover:text-[#4ade80] */
}

/* ===== Flags ===== */
.flag{
    position: relative;
    display: inline-block;
    border-radius: 9999px;      /* rounded-full */
    border: 1px solid #fff;     /* border border-white */
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 8px;          /* mr-2 (desktop) */
}

.flag--md{ width: 24px; height: 24px; }
.flag--sm{ width: 20px; height: 20px; margin-right: 12px; } /* mr-3 */

.flag__img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* object-cover */
}

/* ===== Mobile dropdown ===== */
.country-dropdown{
    display: block; /* md:hidden */
    position: relative;
}

.country-dropdown__button{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    padding: 12px 16px;            /* px-4 py-3 */
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;            /* rounded-lg */
    color: var(--text);
    cursor: pointer;
    transition: background-color 200ms ease;
}

.country-dropdown__button:hover{
    background: var(--panel-2);
}

.country-dropdown__button-left{
    display: inline-flex;
    align-items: center;
}

.country-dropdown__current{
    font-size: 14px;   /* text-sm */
    font-weight: 500;
    color: var(--accent);
}

.country-dropdown__chevron{
    width: 16px; /* w-4 */
    height: 16px; /* h-4 */
    transition: transform 200ms ease;
    transform: rotate(180deg); /* en tu HTML original estaba rotate-180 */
}

/* Menu (estilo del panel) */
.country-dropdown__menu{
    display: none; /* cerrado por defecto */
    position: absolute;
    top: calc(100% + 8px); /* top-full + mt-2 */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 200px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,.35); /* shadow-lg */
    z-index: 50;
    overflow: hidden;
}

.country-option{
    display: flex;
    align-items: center;
    padding: 12px 16px; /* px-4 py-3 */
    color: var(--text);
    text-decoration: none;
    transition: background-color 200ms ease;
}

.country-option:hover{
    background: var(--panel-2);
}

.country-option.is-active{
    background: var(--panel-2);
    color: var(--accent);
}

.country-option__text{
    font-size: 14px; /* text-sm */
    font-weight: 500;
}

/* Overlay */
.country-dropdown__overlay{
    display: none;
    position: fixed;   /* fixed inset-0 */
    inset: 0;
    z-index: 40;
}

/* ===== Open state (la controla tu JS) ===== */
.country-dropdown.is-open .country-dropdown__menu{
    display: block;
}
.country-dropdown.is-open .country-dropdown__overlay{
    display: block;
}
.country-dropdown.is-open .country-dropdown__chevron{
    transform: rotate(0deg); /* si querés que “abra” hacia abajo */
}

/* CTA Banner */
.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;

    padding: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;

    border: 1px solid #22c55e;
    border-radius: 1rem; /* rounded-2xl */
    background-color: #000;
}

/* Imagen dentro del banner */
.cta-banner img {
    max-width: 160px;
    height: auto;
    flex-shrink: 0;
}

/* Contenedor de acciones */
.cta-actions {
    display: flex;
    align-items: center;
}

.cta-actions a {
    display: inline-block;

    padding: 0.75rem 1.5rem; /* py-3 px-6 */

    background-color: #22c55e;
    border-radius: 0.5rem; /* rounded-lg */

    font-weight: 600; /* font-semibold */
    font-size: 1.125rem; /* text-lg */

    text-decoration: none !important;
    color: black !important;

    transition:
            background-color 200ms,
            color 200ms,
            border-color 200ms;
}

/* Hover del CTA */
.cta-actions a:hover {
    display: inline-block;

    padding: 0.75rem 1.5rem;

    background-color: transparent;
    border: 1px solid #22c55e;
    border-radius: 0.5rem;

    font-weight: 600;
    font-size: 1.125rem;

    color: #22c55e !important;
    text-decoration: none !important;

    transition:
            background-color 200ms,
            color 200ms,
            border-color 200ms;
}


/* ===== Responsive ===== */
@media (min-width: 768px){ /* md */
    .country-bar__container{
        padding: 0 24px; /* md:px-6 */
    }

    .country-nav{
        display: flex;
        justify-content: flex-start; /* md:justify-start */
    }

    .country-dropdown{
        display: none; /* md:hidden */
    }
}
