body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #000;
    color: #fff;
    padding-top: 62px;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    scrollbar-gutter: stable;
}

.carousel-skeleton {
    width: 100%;
    height: 100%; 
    background-color: black;
    border: 1px solid #333;
    position: absolute; 
    top: 0;
    left: 0; 
    z-index: 10;
}

.textual-section {
    text-align: center;
    margin: 20px 0;
    font-size: 1.5em;
}

.carousel-container {
    max-width: 1440px;
    overflow: hidden;
    position: relative;
    margin: 0 auto 15px auto;
    aspect-ratio: 1440 / 780;
}

.video-container {
    max-width: 1440px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.dot-indicators {
  position: absolute; bottom: 10px; left: 0; right: 0; transform: none;
  display: flex; flex-direction: row; flex-wrap: nowrap;
  justify-content: center; align-items: center;
  margin: 0 auto; z-index: 100; gap: 8px;
}

:root{
  --dot-size: 5.8px;
  --dot-size-prominent: calc(var(--dot-size) * 1.1);
  --dot-size-applied: calc(var(--dot-size-prominent) * 1.05);
  --dot-accent: #10b981;
  --inner-glow-strength: .22;
  --inner-glow-radius: 4px;
  --edge-brightness: 1;
  --inner-ring-alpha: .28;
  --inner-ring2-alpha: .16;
}

.dot {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  display: inline-block;
  line-height: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.dot:focus { outline: none; }
.dot:focus-visible { outline: 2px solid rgba(255,255,255,0.9); outline-offset: 2px; }
.dot::-moz-focus-inner { border: 0; padding: 0; }

.dot,
.dot.active {
  position: relative;
  width: var(--dot-size-applied) !important;
  height: var(--dot-size-applied) !important;
  border-radius: 999px;
  background:
    radial-gradient(closest-side, rgba(255,255,255,.26), transparent 56%),
    radial-gradient(closest-side, transparent 60%, rgba(255,255,255,.14) 62% 72%, transparent 74%);
  box-shadow: inset 0 0 0 1.25px rgba(255,255,255,.70);
  opacity: .92;
  transition: opacity .2s ease, box-shadow .2s ease, filter .2s ease;
}

.dot:hover { opacity: 1; }

.dot::before,
.dot::after,
.dot.active::before,
.dot.active::after { content: none !important; }

.dot.active {
  transform: none !important;
  box-shadow:
    inset 0 0 0 1.45px rgba(255,255,255,var(--edge-brightness)),
    inset 0 0 var(--inner-glow-radius) 1px rgba(255,255,255,var(--inner-glow-strength)),
    inset 0 0 0 2px rgba(255,255,255,var(--inner-ring-alpha)),
    inset 0 0 0 3px rgba(255,255,255,var(--inner-ring2-alpha));
  filter: saturate(110%) contrast(105%);
}

.dot-indicators .dot.active {
  width: var(--dot-size-applied) !important;
  height: var(--dot-size-applied) !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .dot, .dot.active { transition: none; }
}

@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
  .dot-indicators { display: none; }
}


.carousel-inner {
    display: flex;
    transition: transform 0.88s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

.carousel-item {
    background-color: black;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 100%;
    min-height: 0;
}

.carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder,
.video-thumbnail-placeholder,
.ecoparque-image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    background-color: #000;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-spinner {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    opacity: 0.8;
    color: white;
}

.discover-ecoparque {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 15px 15px;
    display: flex;
    justify-content: space-between;
    margin: 15px auto 0;
    text-align: center;
    color: #1e293b;
    box-sizing: border-box;
    align-items: stretch;
    max-width: 1440px;
}

.ecoparque-item-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 15px;
    padding: 30px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border: none;
}

.ecoparque-item-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.ecoparque-item-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.ecoparque-item-container:hover::before {
    transform: scaleX(1);
}

.ecoparque-item .ecoparque-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.4s ease;
}


.ecoparque-item-container:hover .ecoparque-item .ecoparque-media > img { transform: scale(1.05); }

.ecoparque-title {
    font-weight: 600;
    font-size: 1.3rem;
    margin: 25px 0 18px;
    padding: 0;
    color: #1e293b;
    flex-grow: 0;
    flex-shrink: 0;
}

.text-content {
    color: #64748b;
    line-height: 1.6;
}

.mobile-carousel-nav {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 200;
}

.mobile-carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4vw;
    height: 4vw;
    min-width: 20px;
    min-height: 20px;
    max-width: 40px;
    max-height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-focus-ring-color: transparent;
    -webkit-focus-ring: none;
    -moz-outline: none;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}

.mobile-carousel-button:active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(0.952);
    opacity: 0.94;
}

.mobile-carousel-button:focus {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-carousel-button::-moz-focus-inner {
    border: 0;
    outline: none;
}

.mobile-carousel-button svg {
    width: 4vw;
    height: 4vw;
    min-width: 16px;
    min-height: 16px;
    max-width: 20px;
    max-height: 20px;
    stroke-width: 2.5;
    transition: inherit;
}

.mobile-prev {
    left: 3vw;
}

.mobile-next {
    right: 3vw;
}

.video-section-title {
    background: #000;
    padding: 30px 20px;
    position: relative;
    text-align: center;
}

.video-section-title::before,
.video-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 100%;
    max-width: 1440px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.8), transparent);
    animation: gentleBreathe 6s ease-in-out infinite;
}

.video-section-title::before {
    top: 10px;
}

.video-section-title::after {
    bottom: 10px;
}

@keyframes gentleBreathe {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scaleX(0.92); }
    50% { opacity: 0.75; transform: translateX(-50%) scaleX(1); }
}

.video-section-heading {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1;
}

.carousel-nav {
    display: flex;
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
    width: calc(100% - 20px); 
    pointer-events: none;
}

.carousel-container:hover .carousel-nav {
    pointer-events: all;
}


.carousel-button::before { content: none !important; border: 0 !important; }


.carousel-button {
  width: 33px;
  height: 33px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: rgba(255,255,255,.12);         
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 8px 24px rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  opacity: 0;
  transform: translateY(0);
  transition:
    opacity .25s ease,
    transform .25s ease,
    background-color .25s ease,                    
    box-shadow .25s ease;
  cursor: pointer;
  pointer-events: auto;
}
.carousel-container:hover .carousel-button { opacity: 1; }

.carousel-button.prev {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpolyline points='15 6 9 12 15 18' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}
.carousel-button.next {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpolyline points='9 6 15 12 9 18' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}


.carousel-button:hover {
  background-color: rgba(255,255,255,.18);          
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 10px 28px rgba(0,0,0,.45);
}
.carousel-button:active { transform: scale(.97); }
.carousel-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.35),
    0 8px 24px rgba(0,0,0,.35);
}


.carousel-button::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-button { transition: opacity .25s ease; }
}

.play-pause-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    display: none;
    opacity: 1;
    transition: opacity 1s ease-out;
}

body, button, a {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

span:not(.selectable-text) {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

button::selection,
a::selection {
    background: transparent;
}

.ecoparque-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ecoparque-title {
    font-weight: 600;
    font-size: 1.3rem;
    margin: 25px 0 18px;
    padding: 0;
    color: #1e293b;
    flex-grow: 0;
    flex-shrink: 0;
}

.text-paragraph {
    margin: 0;
    padding: 0;
}

.desktop-img {
    display: block;
}

.mobile-img {
    display: none;
}

.carousel-item-mobile {
    display: none;
}

.ecoparque-item .ecoparque-media {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 4px;
    flex: 0 0 auto;
}


.video-desktop {
    max-width: 1440px;
    height: 100%;
    margin-top: 15px;
}

.video-mobile {
    max-width: 768px;
    height: 100%;
}

.temporary-height {
    transition: height 0.5s ease; 
}

.video-thumbnail {
    width: 100%;
    display: block;
}

.video-thumbnail-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #000;
  z-index: 1;
}

.video-element {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;            
  background: #000;
  z-index: 2;
}

.play-button-container {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: auto;      
  z-index: 3;                
}


.video-element {
    width: 100%;
    display: none;
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 45px;
    }

    .carousel-container {
        margin: 0 auto;
        min-height: 300px;
        aspect-ratio: 1 / 1;
    }

    .carousel-item {
        min-height: 300px;
    }

    .image-placeholder,
    .video-thumbnail-placeholder,
    .ecoparque-image-placeholder {
        min-height: 300px;
    }

    #picture {
        height: 100%;        
    }

    .video-desktop {
        display: none;
    }

    .video-mobile {
        margin-top: 0;
    }

    .dot,
    .dot-indicators {
        display: none;
    }

    .discover-ecoparque {
        flex-direction: column;
        padding: 20px 15px;
        margin: 0 auto 0;
    }

    .mobile-carousel-nav {
        display: block;
    }

    .carousel-nav {
        display: none;
    }

    .video-section-title {
        padding: 25px 15px;
    }

    .video-section-heading {
        font-size: 1.7rem;
        letter-spacing: 1px;
    }

    .video-section-title::before,
    .video-section-title::after {
        height: 1px;
    }

    .video-section-title::before {
        top: 5px;
    }

    .video-section-title::after {
        bottom: 5px;
    }

    .mobile-carousel-button {
        width: 33vw;
        height: 33vw;
        max-width: 50px;
        max-height: 50px;
    }

    .mobile-carousel-button svg {
        width: 8vw;
        height: 8vw;
        max-width: 25px;
        max-height: 25px;
    }

    .mobile-prev {
        left: 2.5vw;
    }

    .mobile-next {
        right: 2.5vw;
    }

    .ecoparque-item-container {
        max-width: 100%;
        flex-basis: 100%;
        padding: 20px 15px 15px 15px;
        margin: 8px;
        transition: none;
    }
    
    .ecoparque-item-container:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
    
    .ecoparque-item-container::before {
        display: none;
    }
    
	.ecoparque-item-container:hover .ecoparque-item .ecoparque-media > img { transform: scale(1.05); }

    
    .ecoparque-item .ecoparque-media > img {
        transition: none;
    }
    
    .ecoparque-item {
        display: flex;
        flex-direction: column;
        height: 100%;
        gap: 0; 
    }
    
    .ecoparque-title {
        margin: 8px 0 8px 0;
        padding: 0;
        font-size: 1.1rem;
        flex-grow: 0;
        flex-shrink: 0;
    }
    
    .text-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0 0 5px 0;
        margin-top: 0;
        overflow: hidden;
        line-height: 1.5;
    }
    
    .text-paragraph {
        margin: 0;
        padding: 0;
        line-height: 1.5;
    }

    .carousel-item .desktop-img {
        display: none;
    }

    .carousel-item .mobile-img {
        display: block;
        width: 100%;
        max-width: 780px;
        height: auto;
        max-height: 780px;
        object-fit: cover;
    }

    .carousel-item-mobile {
        display: block;
        width: 95%;
        max-width: 780px;
        height: auto;
        max-height: 780px;
        object-fit: cover;
        margin-bottom: 1.3vh;
        border-radius: 15px; 
    }

    .carousel-item-mobile img {
        display: block;
        width: 95%;
        max-width: 780px;
        height: auto;
        max-height: 780px;
        object-fit: cover;
        border-radius: 9px; 
    }
}

@media screen and (min-width: 769px) {
    .video-mobile {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding-top: 43px;
    }

    .carousel-container {
        min-height: 250px;
    }

    .carousel-item {
        min-height: 250px;
    }

    .image-placeholder,
    .video-thumbnail-placeholder,
    .ecoparque-image-placeholder {
        min-height: 250px;
    }

    .video-section-title {
        padding: 20px 12px;
    }

    .video-section-heading {
        font-size: 1.4rem;
        letter-spacing: 0.5px;
    }

    .video-section-title::before,
    .video-section-title::after {
        height: 1px;
    }

    .video-section-title::before {
        top: 3px;
    }

    .video-section-title::after {
        bottom: 3px;
    }

    .mobile-carousel-button {
        width: 14vw;
        height: 14vw;
        max-width: 45px;
        max-height: 45px;
    }

    .mobile-carousel-button svg {
        width: 7vw;
        height: 7vw;
        max-width: 22px;
        max-height: 22px;
    }

    .ecoparque-item-container {
        padding: 15px 12px 12px 12px;
        margin: 6px;
    }
    
    .ecoparque-title {
        margin: 6px 0 6px 0;
        padding: 0;
        font-size: 1.0rem;
        flex-grow: 0;
        flex-shrink: 0;
    }
    
    .text-content {
        padding: 0 0 3px 0;
        line-height: 1.4;
    }
    
    .text-paragraph {
        line-height: 1.4;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 320px) {
    body {
        padding-top: 41px;
    }

    .carousel-container {
        min-height: 200px;
    }

    .carousel-item {
        min-height: 200px;
    }

    .image-placeholder,
    .video-thumbnail-placeholder,
    .ecoparque-image-placeholder {
        min-height: 200px;
    }

    .video-section-title {
        padding: 15px 10px;
    }

    .video-section-heading {
        font-size: 1.2rem;
        letter-spacing: 0px;
    }

    .video-section-title::before,
    .video-section-title::after {
        height: 0.5px;
    }

    .video-section-title::before {
        top: 2px;
    }

    .video-section-title::after {
        bottom: 2px;
    }

    .mobile-carousel-button {
        width: 14vw;
        height: 14vw;
        max-width: 45px;
        max-height: 45px;
    }

    .mobile-carousel-button svg {
        width: 6vw;
        height: 6vw;
        max-width: 18px;
        max-height: 18px;
    }

    .mobile-prev {
        left: 2vw;
    }

    .mobile-next {
        right: 2vw;
    }

    .ecoparque-item-container {
        padding: 12px 10px 10px 10px;
        margin: 5px;
    }
    
    .ecoparque-title {
        margin: 5px 0 5px 0;
        padding: 0;
        font-size: 0.95rem;
        flex-grow: 0;
        flex-shrink: 0;
    }
    
    .text-content {
        padding: 0 0 2px 0;
        line-height: 1.3;
    }
    
    .text-paragraph {
        line-height: 1.3;
        font-size: 0.85rem;
    }
}

.video-container { max-width: 1440px; margin: 0 auto; position: relative; }

.video-media {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 0px;
}

@media (max-width: 768px) {
  .video-media { padding-top: 100%; } 
}

.video-thumbnail-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #000; 
}

.video-thumbnail-placeholder { min-height: 0 !important; }

.video-element {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; 
  display: none;         
  background: #000;
}

@media (min-width: 769px) and (any-pointer: coarse),
       (min-width: 769px) and (hover: none) and (pointer: coarse) {
  .carousel-nav {
    pointer-events: all !important;
  }
  .carousel-container .carousel-button {
    opacity: 1 !important;
    transform: none !important;
  }
}
