:root {
    --primary: #348E38;
    --secondary: #525368;
    --light: #E8F5E9;
    --dark: #0F4229;
    --surface: #F3FAF2;
    --shadow-sm: 0 2px 12px rgba(15, 66, 41, .08);
    --shadow-md: 0 10px 30px rgba(15, 66, 41, .10);
    --shadow-lg: 0 20px 45px rgba(15, 66, 41, .16);
    --transition: .3s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: var(--primary);
    color: #FFFFFF;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

a.back-to-top {
    position: fixed;
    display: none;
    right: 40px;
    bottom: 110px;
    z-index: 99;
    transition: transform var(--transition), box-shadow var(--transition);
}

a.back-to-top.show {
    display: flex;
}

a.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.spinner-lg {
    width: 3rem;
    height: 3rem;
}

.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 40px;
    height: 40px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/* Header / logo */
.header-logo {
    margin-right: 10px;
}

/* Navbar */
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar.sticky-top.navbar-visible {
    top: 0;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px;
}

.navbar .navbar-nav .nav-link {
    position: relative;
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
    transition: color var(--transition);
}

.navbar .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/* Carousel */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(15, 66, 41, .25) 0%, rgba(15, 66, 41, .6) 100%);
    z-index: 1;
}

.carousel-caption h1,
.carousel-caption h2 {
    text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

#header-carousel .carousel-item {
    position: relative;
    height: 85vh;
    min-height: 500px;
    max-height: 800px;
}

#header-carousel .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Page header (breadcrumb) */
.page-header {
    background: linear-gradient(rgba(15, 66, 41, .6), rgba(15, 66, 41, .6)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}

/* Secciones */
.section-intro {
    max-width: 500px;
}

.section-alt {
    background: var(--surface);
}

.eyebrow {
    display: inline-block;
    font-size: .85rem !important;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.section-heading {
    position: relative;
    padding-bottom: 1.1rem;
}

.section-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: var(--primary);
}

.text-center .section-heading::after,
.section-heading.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.custom-paragraph {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--secondary);
}

/* Feature / icon boxes */
.feature-card {
    background: #FFFFFF;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.icon-box {
    width: 90px;
    height: 90px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
}

.feature-card:hover .icon-box {
    transform: scale(1.08);
}

.icon-badge {
    width: 70px;
    height: 70px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
}

.service-item:hover .icon-badge {
    background: #FFFFFF;
    transform: scale(1.08);
}

.facts,
.quote {
    background: rgba(15, 66, 41, .6);
}

.quote-bg {
    background-image: linear-gradient(rgba(15, 66, 41, .6), rgba(15, 66, 41, .6)), url(../img/fotovich.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.textarea-message {
    height: 100px;
}

/* Service cards */
.service-item {
    position: relative;
    text-align: center;
    transition: transform var(--transition);
}

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

.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    transform: scale(1.2);
    transition: .3s;
    z-index: -1;
}

.service-item:hover .service-img img {
    transform: scale(1);
}

.service-item .service-text {
    background: #FFFFFF;
    box-shadow: var(--shadow-md);
    transition: .3s;
}

.service-item:hover .service-text {
    background: rgba(9, 41, 25, .82);
    box-shadow: var(--shadow-lg);
}

.service-item .service-text h3,
.service-item .service-text h4,
.service-item .service-text p {
    transition: .3s;
}

.service-item:hover .service-text h3,
.service-item:hover .service-text h4 {
    color: #FFFFFF;
}

.service-item:hover .service-text p {
    color: var(--light);
}

.service-item .service-text .btn-square {
    width: 100px;
    height: 100px;
    background: transparent;
    transition: .5s;
}

.service-item:hover .service-text .btn-square {
    background: var(--light);
}

.service-item .service-text .btn {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: var(--light);
    white-space: nowrap;
    overflow: hidden;
    transition: .3s;
}

.service-item:hover .service-text .btn {
    width: 112px;
}

/* Team / historia */
.team-item {
    position: relative;
    overflow: hidden;
    border-radius: .5rem;
    box-shadow: var(--shadow-md);
}

.team-item .team-text {
    position: absolute;
    width: calc(100% - 45px);
    left: -100%;
    bottom: 45px;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    left: 0;
    opacity: 1;
}

/* Galería de especies */
.gallery-item {
    overflow: hidden;
    border-radius: .5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    transition: transform .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Ubicación / mapas */
.map-col {
    min-height: 450px;
}

.map-frame {
    border: 0;
    width: 100%;
    height: 100%;
    min-height: 450px;
}

/* Footer */
.footer {
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--dark));
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #072A19;
}

.copyright a {
    color: #FFFFFF;
}

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

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-lg);
}

.whatsapp-float i {
    font-size: 30px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav .nav-link::after {
        left: 0;
        right: auto;
        bottom: 6px;
        width: 20px;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        height: 70vh;
        min-height: 450px;
        max-height: 600px;
    }

    .navbar-brand {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .navbar-brand .h1 {
        font-size: 20px;
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .navbar-brand img.header-logo {
        margin-right: 10px;
        max-width: 50px;
    }

    iframe {
        width: 100%;
    }

    .quote-bg {
        background-attachment: scroll;
    }
}
