/********** Template CSS **********/
:root {
    --primary: #00bf63;
    --secondary: #51CFED;
    --light: #F8F2F0;
    --dark: #060315;
}

/* Base HTML & Body Settings */
html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Common Classes */
.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Spinner ***/
#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;
}

/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    transition: top 0.3s ease-in-out;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--light);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

/*** Header Carousel ***/
.header-carousel .owl-carousel-item {
    height: 100vh;
    width: 100%;
    position: relative;
}

.header-carousel .owl-carousel-item img {
    position: absolute;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    image-rendering: crisp-edges;
}

.header-carousel .owl-carousel-item .position-absolute {
    padding-top: 0 !important;
    display: flex;
    align-items: center !important;
    padding-bottom: 0;
    background: rgba(6, 3, 21, 0.537) !important;
}

.header-carousel .owl-carousel-item .col-10.col-lg-8 {
    padding: 1rem;
    margin-bottom: 4%;
}

.header-carousel .owl-carousel-item h5 {
    font-size: 1.25rem;
    margin-bottom: 1rem !important;
}

.header-carousel .owl-carousel-item h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem !important;
}

.header-carousel .btn {
    min-width: 180px;
    padding: 12px 24px;
    text-align: center;
    display: inline-block;
    margin-right: 10px;
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: #00bf63;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/*** Content Section ***/
.contenido {
    background-image: url('../img/fondo-agua.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 50vh;
    color: white;
    padding: 5px;
    border-radius: 8px;
    margin: 25px;
}

/* Animations */
@keyframes aparecerDeIzquierda {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slideInDown {
    animation: slideInDown 1s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 1s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 1s ease-out;
}

/* List Styles */
ul {
    text-align: left;
    margin-top: 20px;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

/*** 3D Slider ***/
.body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    background-color: #FFFFFF;
    perspective: 1000px;
    margin-top: 60px;
}

.carousel {
    position: relative;
    width: 300px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

.slide:nth-child(1) { transform: rotateY(0deg) translateZ(400px); background-image: url('../img/agua1.jpg'); }
.slide:nth-child(2) { transform: rotateY(45deg) translateZ(400px); background-image: url('../img/agua2.jpg'); }
.slide:nth-child(3) { transform: rotateY(90deg) translateZ(400px); background-image: url('../img/agua3.jpg'); }
.slide:nth-child(4) { transform: rotateY(135deg) translateZ(400px); background-image: url('../img/agua4.webp'); }
.slide:nth-child(5) { transform: rotateY(180deg) translateZ(400px); background-image: url('../img/agua5.jpg'); }
.slide:nth-child(6) { transform: rotateY(225deg) translateZ(400px); background-image: url('../img/agua6.jpg'); }
.slide:nth-child(7) { transform: rotateY(270deg) translateZ(400px); background-image: url('../img/agua7.jpg'); }
.slide:nth-child(8) { transform: rotateY(315deg) translateZ(400px); background-image: url('../img/agua8.jpg'); }

@keyframes rotate {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/*** Social Media Icons ***/
.redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    margin-top: 20px;
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    margin: 40px;
    text-decoration: none;
    font-size: 20px;
}

.icon:hover {
    background-color: #555;
}

/*** Mineralogy Section ***/
#mineralogia {
    margin-top: 10vh;
    padding-top: 20px;
}

.container-minerlogia {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.rocas, .suelo {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 350px;
}

.rocas img, .suelo img {
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

/*** Page Header ***/
.page-header {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}

/*** About Section ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
    
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
    
    .container.contact-page {
        max-width: 100% !important;
    }

    .contact-page .contact-form {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
    
    /* Navbar Desktop Styles */
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        top: -6px;
        left: 50%;
        background: #FFFFFF;
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .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;
    }
}

@media (min-width: 1200px) {
    .about-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
    
    .feature-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
    
    .contact-page .contact-form {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
    
    .feature-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
    
    .contact-page .contact-form {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/*** Service, Price & Team ***/
.service-item,
.price-item,
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item img,
.team-item img {
    transition: .5s;
}

.service-item:hover img,
.team-item:hover img {
    transform: scale(1.1);
}

.service-item a.btn-slide,
.price-item a.btn-slide,
.team-item div.btn-slide {
    position: relative;
    display: inline-block;
    overflow: hidden;
    font-size: 0;
}

.service-item a.btn-slide i,
.service-item a.btn-slide span,
.price-item a.btn-slide i,
.price-item a.btn-slide span,
.team-item div.btn-slide i,
.team-item div.btn-slide span {
    position: relative;
    height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 0 35px 35px 0;
    transition: .5s;
    z-index: 2;
}

.team-item div.btn-slide span a i {
    padding: 0 10px;
}

.team-item div.btn-slide span a:hover i {
    background: var(--secondary);
}

.service-item a.btn-slide span,
.price-item a.btn-slide span,
.team-item div.btn-slide span {
    padding-left: 0;
    left: -100%;
    z-index: 1;
}

.service-item:hover a.btn-slide i,
.price-item:hover a.btn-slide i,
.team-item:hover div.btn-slide i {
    border-radius: 0;
}

.service-item:hover a.btn-slide span,
.price-item:hover a.btn-slide span,
.team-item:hover div.btn-slide span {
    left: 0;
}

.service-item a.btn-slide:hover i,
.service-item a.btn-slide:hover span,
.price-item a.btn-slide:hover i,
.price-item a.btn-slide:hover span {
    background: var(--secondary);
}

/*** Footer ***/
.footer {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/map.png) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    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 {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

/* Typography */
h1 {
    font-size: 2rem !important;
    font-weight: bold;
}

/* Container Utilities */
.container-fluid.p-0.pb-5 {
    padding-bottom: 0 !important;
}

/*** Media Queries - Consolidated ***/
/* Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    /* Header Carousel Mobile */
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 50vh;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
    
    /* Button Adjustments */
    .header-carousel .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* Content Height */
    .contenido {
        min-height: 200px;
    }
    
    /* Mineralogy Container */
    .container-minerlogia {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 10px;
    }
}

/* Tablet and Low Height Screens */
@media (max-width: 1024px) and (max-height: 600px) {
    .header-carousel .owl-carousel-item {
        height: 80vh !important;
    }

    .header-carousel .owl-carousel-item img {
        height: 80vh !important;
        object-fit: cover !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 2rem !important;
    }

    .header-carousel .owl-carousel-item h5 {
        font-size: 1rem !important;
    }

    .header-carousel .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .slide {
        margin: 45px;
    }
    
    #mineralogia {
        margin-top: 49vh;
        padding-top: 20px;
    }
    
    .body {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 50vh;
        background-color: #FFFFFF;
        perspective: 1000px;
        margin-top: 60px;
    }
}

/* Low Height Screens */
@media (max-height: 600px) {
    .header-carousel .owl-carousel-item {
        min-height: 60vh;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 2rem;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 1rem;
    }

    .header-carousel .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) {
    body {
        overflow-y: auto;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .navbar {
        position: fixed !important;
        top: -80px;
        width: 100%;
        transition: top 0.3s ease-in-out;
        
    }

    body {
        padding-top: 80px;
    }
    .botonflex{ display: flex;display: flex
        ;
                flex-direction: row;
                flex-wrap: nowrap;
                align-items: flex-start;
                margin:2px; }

                
    
}