:root {
    --primary-color: #006937;
    --primary-green-dark: rgba(0, 105, 55, 0.9);
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background-color: var(--white);
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.logo-policia-nav {
    width: 50px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.navbar-scrolled {
    padding: 8px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
    white-space: normal;
    max-width: 280px;
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-left: 1rem;
}

.navbar-brand-text span {
    display: block;
}

.brand-text-1 {
    font-weight: 800;
}

.brand-text-2 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -3px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    outline: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero {
    background: rgba(0, 105, 55, 0.98);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    height: auto;
    z-index: 0;
    opacity: 0.1;
}

.hero-content {
    color: var(--white);
    z-index: 10;
}

.hero-container {
    margin-top: 4.5rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-image {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15)) !important;
}

.hero-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.floating-elements img {
    position: absolute;
    opacity: 0.1;
    z-index: 1;
    max-width: 150px;
}

.floating-leaf-1 {
    top: 20%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.floating-leaf-2 {
    top: 60%;
    right: 15%;
    animation: float 10s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-leaf-3 {
    bottom: 10%;
    left: 20%;
    animation: float 9s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Video Section */
.video-section {
    padding: 50px 0 100px 0;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.video-container {
    background-color: var(--white);
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about {
    padding: 100px 0 100px 0;
    background-color: var(--white);
}

.about-us {
    padding: 100px 0 50px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -15px;
    left: 0;
}

.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.feature-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-text {
    font-size: 1rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

.bg-shape {
    position: absolute;
    z-index: 0;
    opacity: 0.05;
}

.bg-shape-1 {
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.bg-shape-2 {
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* Sección de participantes */

.participants-section {
    padding: 80px 0;
    background-color: var(--white);
}

.participants-section {
    padding: 80px 0;
    background-color: var(--white);
}

.participant-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.3s ease;
    max-width: 300px;
    min-height: 350px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.participant-img {
    margin-top: 1.5rem;
    height: 204px;
    /* Reduced height for smaller images */
    object-fit: contain;
    /* Show full image without cropping */
    filter: brightness(1.1) contrast(1.1);
    transition: transform 0.5s ease;
    background-color: var(--white);
    /* Add padding to avoid edge contact */
    padding: 2px;
    border-radius: 15px;
    /* Add border radius for rounded corners */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.participant-card:hover .participant-img {
    transform: scale(1.05);
    /* Keep subtle zoom for interactivity */
}

.participant-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-green-dark);
    padding: 18px;
    color: var(--white);
    transform: translateY(60%);
    /* Adjusted for smaller card */
    transition: transform 0.3s ease;
    max-height: 70%;
    /* Slightly reduced to fit smaller card */
    overflow-y: auto;
}

.participant-card:hover .participant-info {
    transform: translateY(0);
    /* Full slide-up on hover */
}

.participant-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    font-style: italic;
    text-align: center;
}

.participant-role {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.participant-bio {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.social-icons a {
    color: var(--white);
    margin-right: 12px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Scrollbar styling for long bios */
.participant-info::-webkit-scrollbar {
    width: 5px;
}

.participant-info::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .participant-card {
        max-width: 220px;
        /* Slightly smaller for tablets */
    }

    .participant-img {
        height: 130px;
        /* Adjusted for smaller screens */
    }
}

@media (max-width: 576px) {
    .participant-card {
        max-width: 200px;
        /* Compact for mobile */
    }

    .participant-img {
        height: 120px;
        /* Further reduced for mobile */
    }
}


/* Schedule Section */
.schedule {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.schedule-tabs {
    margin-bottom: 40px;
}

.nav-tabs {
    border: none;
    justify-content: center;
}

.nav-tabs .nav-item {
    margin: 0 5px;
}

.nav-tabs .nav-link {
    border: none;
    background-color: var(--white);
    color: var(--dark-gray);
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

.schedule-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.schedule-time {
    min-width: 100px;
    padding-right: 20px;
    border-right: 2px solid var(--primary-color);
    font-weight: 600;
    color: var(--primary-color);
}

.schedule-content {
    padding-left: 20px;
    flex-grow: 1;
}

.schedule-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.schedule-speaker {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.schedule-description {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Registration Section */
.registration {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 105, 55, 0.9), rgba(0, 105, 55, 0.9)), url('../img/logo-policia.svg') center/contain no-repeat;
    color: var(--white);
}

.registration .section-title::after {
    background-color: var(--white);
}

.countdown {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.countdown-item {
    text-align: center;
    margin: 0 20px;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.countdown-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    height: 55px;
    border-radius: 50px;
    padding: 0 25px;
    font-size: 1rem;
    border: none;
    margin-bottom: 20px;
}

.form-control:focus {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    border: none;
}

textarea.form-control {
    height: auto;
    border-radius: 20px;
    padding: 15px 25px;
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active,
.btn:focus-visible,
.btn.disabled,
.btn:disabled,
fieldset:disabled .btn {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Venue Section */
.venue {
    padding: 100px 0;
    background-color: var(--white);
}

.venue-info {
    margin-bottom: 30px;
}

.venue-address {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.venue-map {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Countries Section */

.countries {
    padding: 20px 0 150px 0;
    background-color: var(--white);
}

.countries-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slider-track {
    display: flex;
    width: fit-content;
    animation: scroll 20s linear infinite;
}

.country-item {
    flex: 0 0 auto;
    width: 200px;
    margin: 0 10px;
    text-align: center;
}

.country-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.country-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.countries-slider:hover .slider-track {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .country-item {
        width: 150px;
        margin: 0 8px;
    }

    .country-item img {
        height: 90px;
    }
}

@media (max-width: 576px) {
    .country-item {
        width: 120px;
        margin: 0 6px;
    }

    .country-item img {
        height: 70px;
    }
}

/* Sponsors Section */
.sponsors {
    padding: 100px 0 50px 0;
    background-color: var(--light-gray);
}

.sponsor-logo,
.organizer-logo {
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease, transform 0.3s ease;
}

.sponsor-logo:hover,
.organizer-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.sponsor-logo img,
.organizer-logo img {
    max-width: 100%;
    max-height: 90px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.sponsor-logo:hover img,
.organizer-logo:hover img {
    filter: grayscale(0%);
}

/* Organizadores Section */

.organizers {
    padding: 0 0 100px 0;
    background-color: var(--light-gray);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-info {
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--dark-gray);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    padding: 30px 0;
    color: var(--white);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-text {
    font-size: 0.9rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.footer-links {
    text-align: center;
}

.footer-links h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-gray);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-container {
        margin-top: 9rem;
    }

    .hero {
        padding-bottom: 5rem;
    }
}

@media (max-width: 991px) {
    .hero {
        padding-bottom: 0;
    }

    .about {
        padding: 20px 0 100px 0;
    }

    .contact-form {
        margin-top: 50px;
    }

    .hero-container {
        margin-top: 10rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .countdown-number {
        font-size: 2.5rem;
    }

    .countdown-label {
        font-size: 0.9rem;
    }

    .footer-links {
        text-align: left;
    }

    .mas-info-links {
        margin-top: 25px;
    }

    .participant-card {
        min-height: 250px;
    }
}

@media (max-width: 767px) {
    .hero-logo-container {
        display: none;
    }

    .hero-title-container {
        width: 100%;
    }

    .btn-outline {
        margin-left: 0;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-container {
        margin-top: 8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .countdown {
        flex-wrap: wrap;
    }

    .countdown-item {
        margin: 10px;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .nav-tabs .nav-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .hero-background-logo {
        max-width: 300px;
        opacity: 0.1;
    }

    .floating-elements img {
        max-width: 100px;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .btn-primary,
    .btn-outline {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 421px) {
    .btn-outline {
        margin-top: 10px;
    }
}

/* Animations */
.bounce-in {
    animation: bounce-in 1s ease;
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.fade-up {
    animation: fade-up 0.8s ease-out;
}

@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slide-in-right 0.8s ease-out;
}

@keyframes slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slide-in-left 0.8s ease-out;
}

@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.slider-container {
    margin: 2rem;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .slider-container {
        width: 80%;
    }
}

@media (max-width: 576px) {
    .slider-container {
        width: 90%;
    }
}

@media (max-width: 1300px) {
    .content-about-us {
        display: flex;
        flex-direction: column;
    }

    .slider-container {
        width: 100%;
    }

    .text-about-us {
        margin-top: 2rem;
        width: 100%;
    }

    .slider-about-us {
        width: 100%;
    }
}

@media (max-width: 1200px) {
    .navbar-expand-lg .navbar-collapse {
        display: none !important;
    }

    .navbar-expand-lg .navbar-toggler {
        display: block !important;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: column !important;
    }

    .navbar-expand-lg .navbar-collapse.show,
    .navbar-expand-lg .navbar-collapse.collapsing {
        width: 80% !important;
    }

    .navbar>.container {
        flex-wrap: wrap !important;
    }
}

.navbar-expand-lg .navbar-collapse.show,
.navbar-expand-lg .navbar-collapse.collapsing {
    display: block !important;
}