/* Fuentes Locales */
@font-face {
    font-family: 'Corbel';
    src: url('../fonts/corbel.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Corbel';
    src: url('../fonts/corbel-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Corbel';
    src: url('../fonts/corbel-italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Corbel';
    src: url('../fonts/corbel-bold-italic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

:root {
    --primary-blue: #0081af;
    --primary-orange: #ef6434;
    --teal: #0087a3;
    --dark-blue: #334176;
    --light-gray: #f2f2f2;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;

    /* Tipografía Premium */
    --font-heading: 'Corbel', sans-serif;
    --font-body: 'Corbel', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: bold;
}

p {
    line-height: 1.5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 40px 0;
    }
}

/* Header */
header {
    background: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #ddd;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-main {
    height: 52px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #5b585b;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* Submenu Styles */
.nav-links li {
    position: relative;
}

.has-submenu > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 10px 0;
    list-style: none;
    z-index: 1001;
}

.submenu li {
    width: 100%;
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    color: #5b585b;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.submenu li a:hover {
    background-color: #f5f5f5;
    color: var(--primary-blue);
}

.has-submenu:hover .submenu {
    display: block;
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    .container {
        padding: 0 25px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: -25px;
        right: -25px;
        background: #fff;
        padding: 40px 50px;
        gap: 30px;
        z-index: 1000;
        height: auto;
        min-height: calc(100vh - 72px);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
    }

    .nav-links li a {
        font-size: 1.4rem;
        color: #5b585b;
        font-weight: 500;
        display: block;
        width: 100%;
        transition: color 0.3s ease;
    }

    .nav-links li a:hover {
        color: var(--primary-blue);
    }

    /* Submenu mobile */
    .has-submenu > a::after {
        border-top: 5px solid currentColor;
    }

    .submenu {
        position: static;
        box-shadow: none;
        padding: 10px 0 0 20px;
        min-width: auto;
        display: none;
    }

    .has-submenu.active .submenu {
        display: block;
    }

    .submenu li a {
        font-size: 1rem;
        padding: 8px 0;
    }
}

/* Hamburger Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}

/* Hero Section - Responsive Banner */
.hero {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.hero picture {
    display: block;
    width: 100%;
    margin: 0;
}

.hero-banner-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
    object-fit: cover;
    /* Ensures no weird stretching */
}

/* About Section */
.about.section-padding {
    background: #fff;
    text-align: center;
}

.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text {
    max-width: 800px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-dark);
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 350px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: #fff;
}

.btn-orange {
    background-color: var(--primary-orange);
    color: #fff;
}

/* Speakers Section */
.speakers.session-1 {
    background-color: #ECECEB;
}

.speakers.session-2 {
    background-color: #E3E3E3;
}

.section-title-box {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-box h2 {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
}

.section-title-box.light h2 {
    border-color: var(--primary-blue);
}

.session-header {
    text-align: center;
    margin-bottom: 40px;
}

.session-header h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    font-weight: 600;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
}

.speaker-card {
    text-align: center;
}

.speaker-img-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    background: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
}

.speaker-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.speaker-img-placeholder {
    width: 100%;
    height: 100%;
    background: #ccc;
}

.speaker-name {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.speaker-org {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 8px;
}

.flag-wrapper {
    display: flex;
    justify-content: center;
}

.flag {
    width: 48px;
    height: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.session-divider {
    height: 1px;
    background: #ddd;
    margin: 60px 0;
}

/* Sponsors */
.sponsors {
    background: #fff;
}

.sponsors-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--primary-blue);
    padding: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.carousel-btn.prev {
    left: -20px;
}

.carousel-btn.next {
    right: -20px;
}

.carousel-btn img {
    width: 35px;
    height: 35px;
}

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 20px;
    width: 100%;
}

.sponsor-logo {
    flex: 0 0 calc(25% - 20px);
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.sponsor-logo img {
    max-width: 200px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Tamaños personalizados por logo */
.sponsor-logo:nth-child(1) img {
    transform: scale(1.10);
}

.sponsor-logo:nth-child(4) img {
    transform: scale(1.05);
}

.sponsor-logo:nth-child(5) img {
    transform: scale(1.10);
}

.sponsor-logo:nth-child(6) img {
    transform: scale(0.90);
}

.sponsor-logo:nth-child(8) img {
    transform: scale(0.85);
}

.sponsor-logo:nth-child(14) img {
    transform: scale(1.20);
}

.sponsor-logo:nth-child(15) img {
    transform: scale(1.10);
}

@media (max-width: 480px) {
    .sponsor-logo {
        width: 120px;
    }
}

@media (max-width: 768px) {
    .sponsors-carousel-wrapper {
        padding: 0 40px;
    }

    .carousel-btn {
        display: block;
    }

    .carousel-btn.prev {
        left: 0;
    }

    .carousel-btn.next {
        right: 0;
    }

    .sponsors-grid {
        flex-wrap: nowrap;
        overflow-x: hidden;
        /* We'll use JS to scroll, or keep it auto but hidden for style */
        scroll-snap-type: x mandatory;
        gap: 0;
        justify-content: flex-start;
        scroll-behavior: smooth;
    }

    .sponsor-logo {
        flex: 0 0 100%;
        scroll-snap-align: center;
        width: 100%;
        height: 100px;
    }

    .sponsor-logo img {
        max-width: 100%;
        max-height: 80px;
    }

    .speakers-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 0 20px 20px;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
        justify-content: flex-start;
    }

    .speakers-grid::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    .speaker-card {
        flex: 0 0 280px;
        /* Ancho fijo para las cards en mobile */
        scroll-snap-align: center;
        background: rgba(255, 255, 255, 0.5);
        /* Fondo sutil opcional */
        padding: 20px 10px;
        border-radius: 15px;
    }

    .section-title-box h2 {
        font-size: 1rem;
        padding: 8px 20px;
    }
}

/* Previous Editions */
.previous-editions {
    background-color: #BEE1EA;
}

.edition-card {
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.edition-card img {
    width: 100%;
    display: block;
}

.edition-info {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    color: #fff;
}

.btn-sm {
    background: var(--primary-blue);
    padding: 6px 20px;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-end;
}

/* Footer */
footer {
    background: linear-gradient(90deg, #00A7B5 0%, #344061 100%);
    color: #fff;
    padding: 30px 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo-jornadas {
    height: 85px;
    width: auto;
}

.logo-tgp {
    height: 75px;
    width: auto;
}

.footer-copyright {
    font-size: 0.75rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.footer-right {
    display: flex;
    align-items: flex-end;
}

.img-certifications {
    height: 35px;
    width: auto;
}

@media (max-width: 991px) {
    footer {
        padding: 40px 0;
    }

    .footer-top {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 25px;
    }

    .footer-left {
        display: contents;
    }

    .footer-brand {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        width: 100%;
        order: 1;
        margin-bottom: 30px;
    }

    .logo-jornadas {
        height: auto;
        width: 30%;
        max-width: 130px;
    }

    .logo-tgp {
        height: auto;
        width: 40%;
        max-width: 170px;
    }

    .footer-copyright {
        text-align: center;
        width: 100%;
        margin-top: 0;
        order: 3;
    }

    .img-certifications {
        height: auto;
        width: 100%;
        max-width: 100%;
    }

    .footer-right {
        width: 100%;
        justify-content: center;
        order: 2;
    }
}

@media (max-width: 480px) {
    .speakers-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Edición 2025 - Geotecnia --- */
.page-2025 {
    background: #fff;
}

.edition-header {
    background: #fff;
    padding-top: 80px;
    padding-bottom: 20px;
}

.edition-title {
    color: #334176;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.theme-title {
    color: #ef6434;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.edition-about {
    text-align: center;
}

.description-box {
    max-width: 850px;
    margin: 0 auto;
}

.description-box p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.pb-80 {
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .edition-header {
        padding-top: 40px;
    }

    .pb-80 {
        padding-bottom: 0;
    }
}

/* Subtitle for sections in 2025 page */
.section-subtitle-box {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle-box h3 {
    display: inline-block;
    padding: 10px 40px;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

/* Gallery 2025 */
.container-gallery {
    max-width: 900px;
    overflow: visible;
}

.gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: visible;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 10px;
    width: 100%;
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.gallery-thumbnails::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.thumb {
    flex: 1;
    min-width: 0;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumb.active,
.thumb:hover {
    opacity: 1;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.gallery-arrow.left {
    left: -40px;
}

.gallery-arrow.right {
    right: -40px;
}

.gallery-arrow img {
    width: 16px;
    height: auto;
}

/* Video Section 2025 */
.bg-light-blue {
    background-color: #BEE1EA;
    padding: 60px 0;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .video-container {
        padding: 0 30px;
    }
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1.5px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid #fff;
    margin-left: 5px;
}

/* Presentations Section 2025 */
.section-intro {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 40px;
}

.presentations-list {
    max-width: 850px;
    margin: 0 auto 40px;
}

.date-label {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.presentation-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 15px;
    gap: 20px;
    position: relative;
    padding-right: 120px;
    /* Space for item-meta */
    cursor: pointer;
    transition: all 0.3s ease;
}

.presentation-item:hover {
    border-color: #0087a3;
}

.presentation-item:has(input:checked) {
    border-color: #0087a3;
}

.selection-container {
    display: block;
    position: relative;
    padding-left: 0;
    cursor: pointer;
    user-select: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.selection-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 1.5px solid #0081af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selection-container:hover input~.checkmark {
    background-color: #f8f9fa;
}

.selection-container input:checked~.checkmark {
    background-color: transparent;
}

.checkmark:after {
    content: "";
    display: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #0081af;
}

.selection-container input:checked~.checkmark:after {
    display: block;
}

.presentation-item .item-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
}

.item-img-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e5e5;
    flex-shrink: 0;
}

.speaker-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-empty-thumb {
    width: 100%;
    height: 100%;
    background: #ccc;
}

.item-info h5 {
    color: #334176;
    font-size: 1rem;
    margin-bottom: 3px;
    line-height: 1.2;
    font-weight: 600;
}

.item-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.item-meta {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.item-meta span {
    display: block;
    color: #999;
    font-size: 0.8rem;
}

.download-all-box {
    display: flex;
    justify-content: flex-start;
    max-width: 850px;
    margin: 0 auto;
}

.download-all-box .btn {
    width: auto;
    max-width: none;
    border-radius: 0px;
    /* Square-ish but not sharp 0 */
    padding: 10px 40px;
    font-size: 0.95rem;
}

.section-padding-small {
    padding: 40px 0;
}

@media (max-width: 768px) {
    .download-all-box {
        justify-content: center;
    }

    .edition-title {
        font-size: 1.8rem;
    }

    .theme-title {
        font-size: 1.6rem;
    }

    .presentation-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px 15px;
    }

    .selection-container {
        flex-shrink: 0;
    }

    .presentation-item .item-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex: 1;
        min-width: 0;
    }

    .item-img-placeholder {
        width: 55px;
        height: 55px;
        flex-shrink: 0;
    }

    .item-info {
        display: flex;
        flex-direction: column;
        min-width: 0;
        flex: 1;
    }

    .item-info h5 {
        font-size: 0.85rem;
        margin-bottom: 2px;
    }

    .item-info p {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }

    .item-info .item-meta {
        position: static;
        text-align: left;
        flex-direction: row;
        gap: 5px;
        margin-top: 2px;
        transform: none;
    }

    .item-info .item-meta span {
        display: inline;
        font-size: 0.7rem;
    }

    .gallery-thumbnails {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        scroll-behavior: smooth;
        touch-action: pan-x;
        /* Enable horizontal touch scrolling */
    }

    .gallery-thumbnails::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    .gallery-wrapper {
        padding: 0 30px;
        /* Space for arrows */
    }

    .gallery-thumbnails-nav {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .gallery-thumbnails {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .thumb {
        flex: 1;
        min-width: 0;
        aspect-ratio: 16 / 10;
    }

    .gallery-arrow {
        padding: 5px;
        position: absolute;
    }

    .gallery-arrow.left {
        left: -25px;
    }

    .gallery-arrow.right {
        right: -25px;
    }

    .gallery-arrow img {
        width: 12px;
    }
}

/* ========================================
   TEMPLATES PAGE
   ======================================== */

.templates-section {
    padding: 80px 0 80px;
}

.templates-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.templates-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.templates-main-image {
    width: 100%;
    border: 2px solid #0087a3;
    overflow: hidden;
}

.templates-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.templates-thumbnails-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.templates-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    width: 100%;
}

.templates-thumbnails::-webkit-scrollbar {
    display: none;
}

.template-thumb {
    flex: 1;
    min-width: 0;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.template-thumb.active,
.template-thumb:hover {
    opacity: 1;
    border-color: #0087a3;
}

.template-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.templates-thumbnails-nav .gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.templates-thumbnails-nav .gallery-arrow.left {
    left: -40px;
}

.templates-thumbnails-nav .gallery-arrow.right {
    right: -40px;
}

/* Templates Info */
.templates-info {
    padding-top: 20px;
}

.templates-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #334176;
    margin-bottom: 25px;
}

.templates-description {
    font-size: 1rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
}

.templates-description strong {
    color: #0087a3;
}

.templates-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.template-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border: 1.5px solid #ddd;
    border-radius: 15px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-option:hover {
    border-color: #0087a3;
}

.template-option:has(input:checked) {
    border-color: #0087a3;
}

.template-option .option-label {
    color: #0087a3;
    font-size: 0.95rem;
    font-weight: 500;
}

.templates-download {
    margin-top: 20px;
}

.templates-download .btn {
    display: inline-flex;
    width: auto;
    max-width: none;
    border-radius: 0px;
    padding: 10px 40px;
    font-size: 0.95rem;
}

/* Templates Mobile Title */
.templates-title-mobile {
    display: none;
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #334176;
    text-align: center;
}

/* Templates Mobile */
@media (max-width: 768px) {
    .templates-section {
        padding: 40px 0;
    }

    .templates-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .templates-title-mobile {
        display: block;
    }

    .templates-info {
        padding-top: 0;
    }

    .templates-download {
        text-align: center;
    }

    .templates-title {
        display: none;
    }

    .templates-gallery {
        padding: 0 30px;
    }

    .templates-thumbnails-nav .gallery-arrow.left {
        left: -25px;
    }

    .templates-thumbnails-nav .gallery-arrow.right {
        right: -25px;
    }

    .template-option {
        padding: 12px 18px;
    }

    .template-option .option-label {
        font-size: 0.85rem;
    }
}