/* Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --border-radius: 24px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Utilidades */
.mb-80 {
    margin-bottom: 80px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mb-50 {
    margin-bottom: 50px;
}

/* Animaciones de entrada */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video Moderno */
.video-wrapper-modern {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    transition: var(--transition);
}

.video-wrapper-modern:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-wrapper-modern:hover .video-overlay {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
}

/* Botón Play Moderno - CENTRADO */
.play-btn-modern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-decoration: none;
}

.play-icon-wrapper {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.play-icon-wrapper i {
    font-size: 28px;
}

.pulse-ring,
.pulse-ring-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 3px solid white;
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

.pulse-ring-2 {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

.play-btn-modern:hover .play-icon-wrapper {
    transform: scale(1.1);
    background: var(--bg-tesoro-amarillo);
}

.play-btn-modern:hover .play-icon-wrapper i {
    color: white;
}



/* Section Tag */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-tesoro-naranja);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bg-tesoro-claro);
    margin-bottom: 20px;
}

.tag-icon {
    font-size: 18px;
}

/* Títulos */
.section-title {
    font-size: 42px;
    font-weight: 700;
    
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 32px;
    font-weight: 700;
}

.subtitle {
    font-size: 18px;
    color: var(--text-color);
    opacity: 0.8;
}

.divider-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--bg-tesoro-amarillo), var(--bg-tesoro-naranja));
    border-radius: 2px;
}

/* Textos */
.lead-text {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--body-color);
    font-weight: 500;
}

.body-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--body-color);
}

/* Stats */
.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bg-tesoro-amarillo), var(--bg-tesoro-naranja));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-color);
    margin-top: 8px;
    font-weight: 500;
}

/* Gallery Slider */
.gallery-slider-modern {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.gallery-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    transform: translateY(100%);
    transition: var(--transition);
}

.overlay-text {
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.gallery-slider-modern:hover .gallery-overlay {
    transform: translateY(0);
}

.slider-arrow-modern {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slider-arrow-modern:hover {
    background: var(--bg-tesoro-amarillo);
    color: white;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Badge Modern */
.badge-modern {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-tesoro-naranja);
    color: var(--bg-tesoro-claro);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-tesoro-amarillo);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.feature-content h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    text-align: left;
}

.feature-content p {
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
}

/* Sector Cards */
.sector-card {
    position: relative;
    background: white;
    padding: 50px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid #e2e8f0;
    overflow: hidden;
}

.sector-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.sector-icon-wrapper {
    margin-bottom: 30px;
}

.icon-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    position: relative;
    transition: var(--transition);
}

.turismo .icon-circle {
    background: #ffe199;
    color: white;
}

.agro .icon-circle {
    background: #c38277;
    color: white;
}

.moda .icon-circle {
    background: #ecc5ba;
    color: white;
}

.sector-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

.sector-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.sector-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

.sector-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.sector-card:hover .sector-hover-effect {
    left: 100%;
}

/* Partners */
.partners-wrapper {
    background: linear-gradient(135deg, #fff5e8 0%, #fff5e8 100%);
    padding: 60px 40px;
    border-radius: var(--border-radius);
}

.partner-card {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--bg-tesoro-naranja);
}

.partner-logo-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.partner-initial {
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.partner-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.partner-role {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.7;
}

/* CTA Section */
.cta-wrapper {
    position: relative;
    padding: 80px 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: white;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    gap: 16px;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    left: -100px;
    animation: float-shape 20s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    right: 10%;
    animation: float-shape 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: -50px;
    animation: float-shape 18s ease-in-out infinite;
}

@keyframes float-shape {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .section-title {
        font-size: 32px;
    }

    .cta-title {
        font-size: 32px;
    }

    .stats-row {
        gap: 20px;
    }

    .stat-number {
        font-size: 36px;
    }

    .play-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .play-icon-wrapper i {
        font-size: 24px;
    }

    .pulse-ring,
    .pulse-ring-2 {
        width: 70px;
        height: 70px;
    }

    .cta-wrapper {
        padding: 60px 30px;
    }

    .gallery-item img {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 28px;
    }

    .cta-title {
        font-size: 28px;
    }

    .lead-text {
        font-size: 18px;
    }

    .stats-row {
        flex-direction: column;
        gap: 20px;
        display: none;
    }
    .feature-content p{
        text-align: left;
        font-size: 13px;
    }

    .feature-content h5{
        text-align: left;
    }

    .partner-card{
        height: 100%;
    }

    .stat-item {
        text-align: left;
    }

    .play-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .play-icon-wrapper i {
        font-size: 20px;
    }

    .pulse-ring,
    .pulse-ring-2 {
        width: 60px;
        height: 60px;
    }

    .icon-circle {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .sector-card {
        padding: 40px 20px;
    }

    .cta-wrapper {
        padding: 50px 20px;
    }

    .cta-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .gallery-item img {
        height: 300px;
    }

    .slider-arrow-modern {
        width: 40px;
        height: 40px;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .partners-wrapper {
        padding: 40px 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tesoro-rojo-claro);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Animaciones adicionales */
.animate-on-scroll:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-on-scroll:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-on-scroll:nth-child(3) {
    animation-delay: 0.3s;
}

.animate-on-scroll:nth-child(4) {
    animation-delay: 0.4s;
}

/* Mejoras de accesibilidad */
.play-btn-modern:focus,
.btn-cta:focus,
.slider-arrow-modern:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

/* Efectos de carga */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: left 0.5s;
}

.sector-card:hover::before {
    left: 100%;
}

/* Overlay OVOP Section */
.ovop-section {
    position: relative;
   /*  padding: 80px 0; */
}

.ovop-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
    z-index: -1;
}

/* Efecto parallax sutil en secciones */
@media (min-width: 992px) {
    .video-wrapper-modern {
        transition: transform 0.3s ease-out;
    }

    .content-wrapper {
        transition: transform 0.3s ease-out;
    }
}

/* Animación de entrada para las tarjetas de sector */
.sector-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.sector-card:nth-child(1) {
    animation-delay: 0.1s;
}

.sector-card:nth-child(2) {
    animation-delay: 0.2s;
}

.sector-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Mejora visual para los partners */
.partner-logo-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.partner-card:hover .partner-logo-wrapper::after {
    transform: translateX(100%);
}