@font-face {
    font-family: Montserrat-Light;
    src: url(./img/fuentes/Montserrat-Light.otf);
}

html {
    height: 100%;
}

:root {
    --primary-color: #34AE42;
    --title-color: #34AE42;
    --secondary-color: #272637;
    --accent-color: #E2AA31;
    --text-dark: #54595F;
    --text-light: #fff;
    --color-green: #61CE70;
    --color-gold: #BC955B;
    --color-darkest: #1B1728;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #fcfcfc;
    position: relative;
    min-height: 100%;
    top: 0;
}

body {
    background-color: #f4f7fa;
}

.top-bar {
    padding: 0.3rem 1rem !important;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-bottom: 2px solid rgba(0,0,0,0.08);
}

.top-bar .nav-link {
    padding: 0.3rem 0.8rem !important;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 6px;
    color: #272637 !important;
}

.top-bar .nav-link:hover {
    background: rgba(0,0,0,0.06);
    color: #272637 !important;
}

.top-bar .navbar-brand img {
    transition: var(--transition);
}

.top-bar .navbar-brand img:hover {
    transform: scale(1.03);
}

.top-bar .goog-te-combo {
    padding: 4px 8px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    background: white !important;
    font-size: 0.8rem !important;
    cursor: pointer;
    outline: none;
}

.top-bar .goog-te-combo:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(52, 174, 66, 0.2);
}

.top-bar .goog-te-gadget {
    color: #272637 !important;
    font-size: 0 !important;
}

.top-bar .goog-te-gadget > span {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem !important;
}

.top-bar .goog-te-gadget img {
    margin: 0 !important;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.navbar-brand img {
    transition: var(--transition);
}

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

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.carousel-item {
    max-height: 80vh;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-box {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(52, 174, 66, 0.15);
    border-color: var(--primary-color);
}

.button {
    background: var(--primary-color);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    color: white !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none !important;
    display: inline-block;
}

.button:hover {
    background: transparent;
    color: var(--accent-color) !important;
    border-color: var(--accent-color);
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
    font-weight: 700;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.nav-tabs {
    border: none;
    justify-content: center;
    margin-bottom: 40px;
    background: #D6EFD9;
    padding: 10px;
    border-radius: 100px;
    display: inline-flex;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 100px;
    margin: 0 5px;
    background: transparent;
}

.nav-tabs .nav-link.active {
    background: var(--primary-color);
    color: white !important;
    box-shadow: 0 5px 15px rgba(52, 174, 66, 0.3);
}

.nav-tabs .nav-link:hover:not(.active) {
    color: var(--primary-color);
}

.tab-content {
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(52, 174, 66, 0.08);
    border: 1px solid rgba(52, 174, 66, 0.1);
}

footer {
    background: linear-gradient(135deg, var(--secondary-color), var(--color-darkest)) !important;
    color: white;
    padding: 80px 0 30px;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    margin-top: 100px;
}

.footer-copyright {
    background: var(--color-darkest);
    margin-top: 50px;
    padding: 20px 0;
}

.text-primary-custom {
    color: var(--title-color);
}

.owl-carousel .card-img-top {
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.owl-carousel .item {
    padding: 5px;
}

.owl-carousel .item img {
    max-width: 100%;
}

.foto {
    width: 100%;
    max-width: 240px;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.card-box {
    padding: 25px;
}

.interactive-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.interactive-card:hover,
.interactive-card:focus {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(52, 174, 66, 0.18);
    border-color: rgba(52, 174, 66, 0.3);
    outline: none;
}

.interactive-card:focus-visible {
    box-shadow: 0 0 0 4px rgba(52, 174, 66, 0.25);
}

.card:hover {
    transform: translateY(-6px);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interactive-overlay {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 5;
}

.button.small-button {
    padding: 10px 24px;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.3rem;
}

h4 {
    font-size: 1.1rem;
}

p.lead {
    font-size: 1.05rem;
}

.card-box p {
    font-size: 0.9rem;
}

.button {
    font-size: 0.8rem;
    padding: 10px 24px;
}

@media (max-width: 768px) {
    .owl-carousel .card-img-top {
        height: 140px;
    }

    .card-box {
        padding: 20px;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    h4 {
        font-size: 1rem;
    }

    .section-title {
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    .owl-carousel .card-img-top {
        height: 120px;
    }

    .card-box {
        padding: 15px;
    }

    h2 {
        font-size: 1.15rem;
    }

    h3 {
        font-size: 1rem;
    }

    p.lead {
        font-size: 0.95rem;
    }
}

.navbar-nav li:hover>ul.dropdown-menu {
    display: block;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    left: -100%;
    top: 0;
    margin: 0;
    padding: 0;
    right: 100%;
}

.dropdown-menu li a:hover {
    color: var(--accent-color);
}

.dropdown-menu>li>a:hover:after {
    text-decoration: underline;
    transform: rotate(-90deg);
    color: var(--accent-color);
}

p {
    font-family: Montserrat-Light;
    color: var(--text-dark);
}

a {
    font-family: Montserrat-Light;
}

h3 {
    font-family: Montserrat-Light;
}

.text-justify {
    text-align: justify;
}

.text-center {
    text-align: center;
}

h4 {
    color: var(--title-color);
    font-weight: 600;
    text-align: center;
}

.btn {
    position: relative;
    display: flex;
    color: white;
    font-size: 14px;
    font-family: "montserrat";
    text-decoration: none;
    margin: 30px 0;
    border: 2px solid var(--accent-color);
    padding: 14px 60px;
    text-transform: uppercase;
    overflow: hidden;
    transition: 1s all ease;
}

.btn::before {
    background: rgba(226, 170, 49, 0.15);
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: all 0.6s ease;
}

.btn1::before {
    width: 0%;
    height: 100%;
}

.btn1:hover::before {
    width: 33%;
}

.btn2::before {
    width: 100%;
    height: 0%;
}

.btn2:hover::before {
    height: 33%;
}

.btn3::before {
    width: 100%;
    height: 0%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.btn3:hover::before {
    height: 33%;
}

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

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

/* Utility classes */
.card-rounded {
    border-radius: 20px !important;
    overflow: hidden;
}

.card-header-green {
    background: linear-gradient(135deg, var(--primary-color), #9AD7A1) !important;
    color: #fff !important;
}

.card-header-light-green {
    background: linear-gradient(135deg, var(--primary-color), #61CE70) !important;
    color: #fff !important;
}

.card-header-gold {
    background: linear-gradient(135deg, var(--primary-color), #E2AA31) !important;
    color: #fff !important;
}

.card-header-gray {
    background: linear-gradient(135deg, var(--primary-color), #54595F) !important;
    color: #fff !important;
}

.nav-top-bg {
    background-color: #B0FF34 !important;
}

.nav-main-bg {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--color-darkest) 100%) !important;
}

.img-w-80 {
    width: 80px !important;
}

.text-white-btn {
    color: #FFFFFF !important;
}

html {
    scroll-behavior: smooth;
}

.dynamic-hero {
    background: linear-gradient(135deg, #272637 0%, #34AE42 40%, #61CE70 100%);
    color: #fff;
}

.section-space {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.action-card {
    display: block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 28px;
    padding: 30px 25px;
    text-align: center;
    color: #fff;
    transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
    min-height: 260px;
}

.action-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.16);
}

.action-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.dynamic-tip {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
}

.dynamic-tip .tip-label {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: #f4f7fa;
}

.action-card h4,
.dynamic-tip p {
    color: #fff;
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.action-card:hover .action-icon {
    animation: pulse-soft 1.2s ease infinite;
}

@media (max-width: 768px) {
    .dynamic-hero {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

.carousel-img {
    width: 100%;
    height: auto;
    max-height: 75vh;
}

@media (min-width: 769px) {
    .carousel-img {
        max-height: 75vh;
    }
}

@media (max-width: 768px) {
    .carousel-img {
        max-height: 50vh;
    }
}

@media (max-width: 576px) {
    .carousel-img {
        max-height: 40vh;
    }
}

.carousel,
.carousel-inner,
.carousel-item {
    max-height: 100vh;
}

@media (max-width: 768px) {
    .top-bar .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .top-bar .nav-link {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem !important;
    }

    .nav-main-bg .navbar-brand img {
        width: 120px;
    }

    .dynamic-hero .action-card {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .top-bar .nav-link {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem !important;
    }

    .nav-main-bg .navbar-brand img {
        width: 100px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    footer {
        text-align: center;
    }
}
