/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --screenwidth: 100%;
    --padding: clamp(1.25rem, 5vw, 5rem);
    --subtitulos: clamp(2rem, 4vw, 4.25rem);
    --subtitulos-2: clamp(1.75rem, 3.5vw, 3.5rem);
    --titulos-parrafos-gris: clamp(0.9375rem, 1.5625vw, 1.5625rem);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f4;
    color: #000;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.desktop-platform {
    position: relative;
    z-index: 1;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: var(--screenwidth);
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-background img {
    position: absolute;
    width: 95.3%;
    height: 187.09%;
    left: 6.36%;
    top: -59.64%;
    object-fit: cover;
}

.hero-text {
    width: 954px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    padding: 141px 0 76px 185px;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 900;
    font-size: 90px;
    line-height: normal;
    color: #000;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1);
    width: 940px;
}

.hero-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image-effie {
width: 230px;
  max-width: 100%;
}

@keyframes screen {
    0%, 80%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    20%, 40%, 60% {
        opacity: 0.8;
        transform: scale(1);
    }
    10%, 30%, 50%, 70% {
        opacity: 1;
        transform: scale(1);
    }   
}
    
.hero-image-icon {
  position: absolute;
  top: 13%;
  left: -13%;
  width: 120%;
  animation: screen 8s ease-in-out infinite;
}

/* Stories Header Section */
.stories-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 3vw, 3rem) var(--padding) 0;
    width: 100%;
}

.story-header {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 1.5vw, 1.5rem);
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 50rem;
}

.story-header .section-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 900;
    font-size: var(--subtitulos);
    line-height: 1.2;
    color: #000;
    text-align: center;
}

.story-header .section-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    line-height: 1.4;
    color: #000;
    text-align: center;
}

/* Success Stories Section */
.success-stories-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 5vw, 5rem) var(--padding) clamp(2rem, 4vw, 4rem);
    width: 100%;
}

.stories-container {
    display: flex;
    align-items: start;
    justify-content: center;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 3vw, 4rem);
    width: 100%;
    max-width: 1400px;
}

.story-card {
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 2vw, 2.5rem);
    width: 100%;
    min-height: clamp(22rem, 28vw, 32rem);
    background-color: hsla(0,0%,100%, .85);
  backdrop-filter: blur(6px);
  padding: 15px 15px 30px;
  border-radius: 30px;
  border: 1px solid white;
}

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

.story-category {
    border-radius: clamp(0.9375rem, 1.25vw, 1.25rem);
    width: 100%;
    padding: clamp(0.3125rem, 0.5vw, 0.625rem);
}

.story-category-1 {
    background-color: #07F4F9;
}

.story-category-2 {
    background-color: #CA34E1;
}

.story-category-3 {
    background-color: #04C9FB;
}

.story-category p {
    text-align: center;
    font-size: clamp(0.875rem, 1vw, 1rem);
    font-weight: 500;
    color: white;
}

.story-video {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: clamp(12rem, 16vw, 18rem);
}

.video-placeholder {
    width: clamp(10rem, 14vw, 16rem);
    height: clamp(10rem, 14vw, 16rem);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.story-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(3rem, 4.5vw, 5rem);
    height: clamp(3rem, 4.5vw, 5rem);
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.story-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
    width: clamp(1.5rem, 2.5vw, 2.5rem);
    height: clamp(1.5rem, 2.5vw, 2.5rem);
    margin-left: 4px;
}

.story-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.5rem, 0.75vw, 0.75rem);
    flex: 1;
    width: 100%;
    padding: 0 clamp(0.5rem, 1vw, 1rem);
}

.story-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 700;
    font-size: clamp(1.25rem, 2.75vw, 1.75rem);
    line-height: 1.3;
    color: #000;
}

.story-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.125vw, 1.125rem);
    line-height: 1.4;
    color: #000;
    text-align: center;
}

.story-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    line-height: 1.6;
    color: #333333;
    text-align: center;
}

/* Back Section */
.back-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 10px 0 90px;
    width: 100%;
}

/* Responsive adjustments */
@media (min-width: 1440px) {
    .stories-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1600px;
    }

    .story-card {
        min-height: 32rem;
    }

    .video-placeholder {
        width: 16rem;
        height: 16rem;
    }

    .story-video {
        max-height: 16rem;
    }
}

@media (max-width: 1440px) {
    .navbar,
    .main-content {
        width: 100%;
        max-width: 100%;
    }
    
    .tools-container {
        flex-wrap: wrap;
        padding: 43px 20px 0;
        gap: clamp(2rem, 3.5vw, 53px);
    }

    .hero-text {
        padding: 141px 0 76px clamp(2rem, 12vw, 185px);
    }

    .hero-text h1 {
        font-size: clamp(3rem, 6.25vw, 90px);
        width: 100%;
        max-width: 940px;
    }

    .kit-header {
        padding: 0 clamp(2rem, 5vw, 80px);
    }
}

@media (max-width: 1024px) {
    :root {
        --padding: clamp(1.5rem, 3vw, 3rem);
        --subtitulos: clamp(2rem, 3.5vw, 3.5rem);
    }

    .navbar {
        min-height: 4.5rem;
    }

    .logo {
        width: clamp(9rem, 14vw, 14rem);
        height: clamp(2.5rem, 3.5vw, 3.5rem);
    }

    .nav-link {
        font-size: clamp(0.8rem, 1vw, 1rem);
    }

    .btn-primary {
        padding: 8px 20px;
        font-size: 15px;
    }

    .hero-section {
        height: auto;
        flex-direction: row;
        justify-content: center;
        background-position: center;
    }

    .hero-text {
        width: 60%;
        padding: clamp(3rem, 8vw, 100px) var(--padding);
    }

    .hero-text h1 {
        font-size: clamp(2.5rem, 5vw, 70px);
    }

    .kit-section {
        gap: clamp(3rem, 8vw, 100px);
        padding: clamp(2rem, 5vw, 80px) var(--padding) 0;
    }

    .kit-header {
        gap: clamp(1.5rem, 2.5vw, 36px);
    }

    .section-title {
        font-size: clamp(2rem, 3.5vw, 56px);
        line-height: 1.2;
    }

    .section-description {
        font-size: clamp(1.25rem, 2vw, 26px);
        line-height: 1.3;
    }

    .tools-container {
        flex-wrap: wrap;
        gap: clamp(1.5rem, 3vw, 40px);
        padding: clamp(1.5rem, 3vw, 43px) var(--padding) 0;
        justify-content: center;
    }

    .tool-card {
        width: clamp(16rem, 45%, 45%);
        max-width: 320px;
        height: auto;
        min-height: clamp(20rem, 22vw, 355px);
        padding: 15px 30px;
    }

    .card-inner {
        width: 100%;
    }

    .tool-icon {
        width: clamp(10rem, 65%, 198px);
        height: clamp(8rem, 50%, 162px);
    }

    .tool-title {
        font-size: clamp(1.375rem, 1.8vw, 24px);
    }

    .tool-subtitle {
        font-size: clamp(1rem, 1.25vw, 16px);
    }

    .tool-description {
        font-size: clamp(0.8125rem, 0.97vw, 13px);
        width: 100%;
        height: auto;
    }

    .exclusive-message {
        padding: clamp(1.5rem, 3vw, 43px) var(--padding) 0;
    }

    .exclusive-message p {
        font-size: clamp(1.25rem, 2vw, 24px);
        line-height: 1.4;
    }

    .stories-container {
        gap: clamp(1rem, 2vw, 3rem);
        flex-wrap: wrap;
    }

    .story-card {
        gap: clamp(1.25rem, 2vw, 2rem);
        max-width: 40%;
    }

    .video-placeholder {
        width: clamp(11rem, 18vw, 14rem);
        height: clamp(11rem, 18vw, 14rem);
    }

    .story-video {
        max-height: clamp(11rem, 18vw, 14rem);
    }

    .play-button {
        width: clamp(3rem, 5vw, 4.5rem);
        height: clamp(3rem, 5vw, 4.5rem);
    }

    .play-button svg {
        width: clamp(1.75rem, 3vw, 2.5rem);
        height: clamp(1.75rem, 3vw, 2.5rem);
    }

    .back-section {
        padding: clamp(2rem, 5vw, 60px) 0 0;
    }

}

@media (min-width: 820px) and (max-width: 1024px) {
    .tools-container {
        justify-content: center;
    }

    .tool-card {
        width: clamp(18rem, 30%, 30%);
        max-width: 45%;
    }
}

@media (max-width: 768px) {
    :root {
        --padding: clamp(1rem, 2.5vw, 2.5rem);
        --subtitulos: clamp(1.75rem, 3vw, 3rem);
        --subtitulos-2: clamp(1.5rem, 2.5vw, 2.5rem);
    }

    .navbar {
        min-height: 4rem;
    }

    .navbar-container {
        flex-direction: row;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .logo {
        width: clamp(8rem, 12vw, 12rem);
        height: clamp(2.5rem, 3vw, 3rem);
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .nav-link {
        font-size: clamp(0.75rem, 0.9vw, 0.9rem);
    }

    .btn-primary {
        padding: 7px 18px;
        font-size: 14px;
    }

    .hero-section {
        flex-direction: column;
        align-items: center;
    }

    .hero-text {
        width: 100%;
        padding: clamp(2rem, 5vw, 60px) var(--padding) clamp(1rem, 3vw, 40px);
        text-align: center;
        align-items: center;
    }

    .hero-text h1 {
        font-size: clamp(2.5rem, 8vw, 60px);
        width: 100%;
    }

    .hero-image {
        padding: 0 var(--padding);
    }

    .section-title {
        font-size: clamp(1.75rem, 4vw, 48px);
        line-height: 1.2;
    }

    .section-description {
        font-size: clamp(1.125rem, 2.5vw, 24px);
        line-height: 1.4;
    }

    .exclusive-message {
        padding: clamp(2rem, 4vw, 40px) var(--padding) 0;
    }

    .exclusive-message p {
        font-size: clamp(1.125rem, 3vw, 22px);
        line-height: 1.4;
    }

    .stories-container {
        gap: clamp(1.5rem, 3vw, 2.5rem);
    }

    .story-card {
        min-height: clamp(22rem, 36vw, 32rem);
        gap: clamp(1rem, 2vw, 1.75rem);
    }

    .video-placeholder {
        width: clamp(10rem, 22vw, 13rem);
        height: clamp(10rem, 22vw, 13rem);
    }

    .story-video {
        max-height: clamp(10rem, 22vw, 13rem);
    }

    .play-button {
        width: clamp(3rem, 6vw, 4rem);
        height: clamp(3rem, 6vw, 4rem);
    }

    .play-button svg {
        width: clamp(1.5rem, 3.5vw, 2.25rem);
        height: clamp(1.5rem, 3.5vw, 2.25rem);
    }

    .story-content {
        padding: 0 clamp(0.5rem, 2vw, 1rem);
    }

    .story-title {
        font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    }

    .story-subtitle {
        font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
    }

    .story-description {
        font-size: clamp(0.875rem, 2vw, 1rem);
    }

    .back-section {
        padding: clamp(2rem, 5vw, 60px) 0 0;
    }

}

@media (min-width: 490px) and (max-width: 768px) {
    .hero-text {
        padding: clamp(2.5rem, 6vw, 70px) var(--padding) clamp(1.5rem, 4vw, 50px);
    }

    .hero-text h1 {
        font-size: clamp(3rem, 7vw, 55px);
    }

    .section-title {
        font-size: clamp(2rem, 4.5vw, 52px);
    }

    .section-description {
        font-size: clamp(1.25rem, 3vw, 26px);
    }

    .stories-container {
        gap: 2rem;
    }

    .story-card {
        min-height: 24rem;
        min-width: 70%;
    }

    .video-placeholder {
        width: 11rem;
        height: 11rem;
    }

    .story-video {
        max-height: 11rem;
    }

    .exclusive-message p {
        font-size: clamp(1.25rem, 3.5vw, 24px);
    }
}

@media (max-width: 480px) {
    :root {
        --padding: 1rem;
        --subtitulos: 1.75rem;
        --subtitulos-2: 1.5rem;
    }

    .navbar {
        min-height: 3.5rem;
    }

    .navbar-container {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .logo {
        width: 8rem;
        height: 2.5rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .btn-primary {
        padding: 6px 15px;
        font-size: 13px;
    }

    .hero-text {
        padding: 2rem 1rem 1rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .section-description {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    .exclusive-message {
        padding: 2rem 1rem 0;
    }

    .exclusive-message p {
        font-size: 1.125rem;
        line-height: 1.5;
    }

    .stories-container {
        gap: 2rem;
    }

    .story-card {
        min-height: auto;
        gap: 1.5rem;
        min-width: 90%;
    }

    .video-placeholder {
        width: 12rem;
        height: 12rem;
    }

    .story-video {
        max-height: 12rem;
    }

    .play-button {
        width: 3.5rem;
        height: 3.5rem;
    }

    .play-button svg {
        width: 2rem;
        height: 2rem;
    }

    .story-content {
        padding: 0 1rem;
    }

    .story-title {
        font-size: 1.5rem;
    }

    .story-subtitle {
        font-size: 1rem;
    }

    .story-description {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .story-category p {
        font-size: 0.9375rem;
    }

    .back-section {
        padding: 2rem 0 0;
    }

}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: clamp(20rem, 90vw, 56rem);
    background: #000;
    border-radius: clamp(0.5rem, 1vw, 1rem);
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: clamp(0.75rem, 2vw, 1rem);
    right: clamp(0.75rem, 2vw, 1rem);
    width: clamp(2.5rem, 4vw, 3rem);
    height: clamp(2.5rem, 4vw, 3rem);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video-modal-close:focus {
    outline: 2px solid #0d8ce8;
    outline-offset: 2px;
}

.video-modal-close svg {
    width: clamp(1rem, 2vw, 1.5rem);
    height: clamp(1rem, 2vw, 1.5rem);
    fill: white;
}

.video-modal-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    background: #000;
}

.video-modal-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    height: 100vh;
}

/* Enhanced video placeholder cursor */
.video-placeholder {
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.video-placeholder:focus {
    outline: 3px solid #CC21E2;
    outline-offset: 4px;
    transform: scale(1.02);
}

.video-placeholder:active {
    transform: scale(0.98);
}

/* Responsive modal adjustments */
@media (max-width: 768px) {
    .video-modal-overlay {
        padding: 1rem;
    }

    .video-modal-content {
        max-width: 95vw;
        border-radius: 0.5rem;
    }

    .video-modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .video-modal-close svg {
        width: 1rem;
        height: 1rem;
    }
}

@media (max-width: 480px) {
    .video-modal-overlay {
        padding: 0.5rem;
    }

    .video-modal-content {
        max-width: 98vw;
        border-radius: 0.375rem;
    }

    .video-modal-close {
        top: 0.25rem;
        right: 0.25rem;
        width: 2rem;
        height: 2rem;
    }

    .video-modal-close svg {
        width: 0.875rem;
        height: 0.875rem;
    }
}

/* Animation for modal entrance */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.video-modal.active .video-modal-content {
    animation: modalFadeIn 0.3s ease-out;
}
