/* Modern Styles for 2026 Edition */

/* General Improvements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism Navbar */
/* Glassmorphism Navbar - Initial Transparent State */
.navbar-default {
    background-color: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
    transition: all 0.3s ease;
    padding: 15px 0;
}

/* Scrolled State */
.navbar-default.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 0px 0;
}

.navbar-default .navbar-nav>li>a {
    color: #fff !important;
    /* White text on transparent/hero */
    font-weight: 500;
    transition: color 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    /* improved readability */
}

.navbar-default.scrolled .navbar-nav>li>a {
    color: #333 !important;
    /* Dark text on white scrolled bg */
    text-shadow: none;
}

.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a.active {
    color: #ed325a !important;
    background: transparent !important;
}

/* Hero Logo Overlap */
.logoHeader {
    position: relative;
    z-index: 2000;
    /* Ensure it stays on top of the navbar */
}

/* Modern Buttons & Interactive Elements */
.btn,
button,
.date-info,
.btn-passline {
    border-radius: 50px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover,
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.home-text h2 {
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: 1px;
}

.angled-banner {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: none;
    background: linear-gradient(135deg, #ed325a 0%, #aa2340 100%);
    /* richer gradient */
}

.banner-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Modern Vineyard Cards */
.corporate-team {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.corporate-team:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(237, 50, 90, 0.15);
    border-color: rgba(237, 50, 90, 0.1);
}

.team-member {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: #f8f8f8;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.corporate-team:hover .team-img {
    transform: scale(1.1);
}

/* Glassmorphism Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(237, 50, 90, 0.2) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.corporate-team:hover .overlay {
    opacity: 1;
}

.team-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.corporate-team:hover .team-social {
    transform: translateY(0);
}

.team-social li a {
    width: 45px;
    height: 45px;
    background: #fff;
    color: #ed325a !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-social li a:hover {
    background: #ed325a;
    color: #fff !important;
    transform: rotate(360deg) scale(1.1);
}

.team-details {
    padding: 25px 20px;
    text-align: center;
    background: #ed325a;
    /* Brand color */
    flex-grow: 1;
    transition: background 0.3s ease;
    border-radius: 0 0 20px 20px;
}

.team-details h3 {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    /* White text */
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.team-details p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    /* Semi-transparent white */
    font-weight: 600;
    margin: 0;
}

.btn-vina {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.btn-vina:hover {
    background: #fff;
    color: #ed325a !important;
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Fix for standard team-col padding */
.team-col {
    padding: 15px;
}

/* Typography refinements */
/* Typography refinements - COMENTADO PARA USAR ESTILOS ORIGINALES
h3 {
    font-weight: 700 !important;
    letter-spacing: -0.5px;
}

.team-title h3 {
    position: relative;
    display: inline-block;
}

.team-title p {
    font-size: 1.1em;
    opacity: 0.8;
}
*/

/* Ensure Hero Content is above Navbar if requested */
.home-text {
    position: relative;
    z-index: 2000;
    /* Higher than navbar */
}

/* Contact Section & Footer */
#contact {
    background-color: #fafafa;
}

.contact-form-details {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding: 40px 0;
    margin-top: 20px;
}

.info-details {
    padding: 30px 20px;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.info-details:hover {
    background-color: #fff9fa;
    transform: translateY(-5px);
}

.contact-icon {
    color: #ed325a;
    background: rgba(237, 50, 90, 0.1);
    width: 60px;
    height: 60px;
    line-height: 60px !important;
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 24px !important;
}

.google-maps {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Date Badge Style */
.event-info {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
}

/* Footer improvements */
.footer {
    background: #111;
    border-top: 1px solid #222;
}

.logo-block img {
    filter: brightness(0.9) grayscale(100%);
    transition: all 0.4s ease;
}

.logo-block:hover img {
    filter: brightness(1) grayscale(0%);
}

.logo-block:hover .insta-label {
    opacity: 1;
    color: #ed325a;
}

/* Responsive & New Section Styles */

.past-edition-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.past-edition-row {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.instagram-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.placeholder-location-container {
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    width: 100%;
    border-radius: 12px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .banner-text {
        font-size: 14px;
    }

    .home-text h2 {
        font-size: 32px;
    }

    .past-edition-row {
        flex-direction: column;
        margin-top: 20px;
    }

    .past-edition-row .col-md-6 {
        width: 100%;
        margin-bottom: 40px;
    }

    .instagram-card {
        padding: 25px;
        width: 100%;
        max-width: 340px;
    }

    .placeholder-location-container {
        height: 300px;
    }

    /* Fix Navbar on Mobile */
    .navbar-fixed-top {
        top: 0 !important;
        position: fixed !important;
        margin-top: 0 !important;
        transform: none !important;
    }

    .navbar-header {
        background: transparent;
        margin-top: 0 !important;
        padding-top: 10px;
        min-height: auto !important;
    }

    #home-back {
        background-position: right center !important;
    }

    /* Collaborators & Cards Mobile Refinements */
    .colaboradores-section {
        padding: 40px 0;
    }

    .colab-flex-wrapper {
        gap: 50px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .colab-logos-container {
        gap: 40px;
        flex-direction: column;
        align-items: center;
    }

    .colab-logos-container .logo-block,
    .colab-logos-container a {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .colab-logo {
        max-height: 80px;
        max-width: 200px;
        width: auto;
        display: block;
        margin: 0 auto;
    }

    .team-col {
        padding: 8px;
        /* Tighter grid on mobile */
    }

    .team-details {
        padding: 15px 10px;
    }

    .team-details h3 {
        font-size: 14px;
    }

    .testimonial-card {
        width: 300px;
        padding: 20px;
        margin: 0 10px;
    }
}

/* Hero Shape Divider */
.hero-shape {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 5;
}

.hero-shape img {
    display: block;
    width: 100%;
    height: auto;
}

/* Colaboradores Section */
.colaboradores-section {
    padding: 60px 0;
    background-color: #fff;
}

.colab-item {
    padding: 20px;
    transition: transform 0.3s ease;
}

.colab-item:hover {
    transform: translateY(-5px);
}

.colab-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    font-weight: 600;
}

.colab-logo {
    max-height: 80px;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.4s ease;
}

.colab-flex-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.colab-logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 10px;
}

.colab-item:hover .colab-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* Modern Minimalist Footer */
.footer {
    background: #0a0a0a;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    text-align: left;
    /* Force left alignment */
}

.footer-col {
    margin-bottom: 40px;
}

.footer-main-logo {
    height: 120px;
    width: auto;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.footer-main-logo:hover {
    transform: scale(1.05);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 300px;
}

.footer-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background: #ed325a;
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.footer-links li a:hover {
    color: #ed325a;
    padding-left: 5px;
}

/* Social & Institutional */
.footer-insta-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-insta-btn:hover {
    background: #ed325a;
    transform: translateY(-3px);
}

.footer-partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.partner-item {
    width: auto;
}

.partner-item img {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 8px;
}

.partner-item:hover img {
    opacity: 1;
    transform: translateY(-3px);
}

.partner-handle {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.partner-item:hover .partner-handle {
    color: #ed325a;
}

/* Footer Bottom */
.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 40px auto 30px;
    width: 100%;
}

.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 30px;
        text-align: left;
        /* Keep left alignment on mobile as requested */
    }

    .footer-title::after {
        left: 0;
        transform: none;
    }

    .footer-desc {
        margin: 0 auto 25px;
        text-align: left;
    }

    .footer-partners-grid {
        justify-content: flex-start;
    }

    .footer-main-logo {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .colaboradores-section {
        padding: 40px 0;
    }

    .colab-item {
        margin-bottom: 30px;
    }
}

/* Coming Soon Banner */
.coming-soon-banner {
    position: relative;
    width: 100%;
    height: 300px;
    background-image: url('../img/vino.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 0;
    overflow: hidden;
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay for text readability */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    background: transparent;
    text-align: center;
    padding: 20px;
}

.coming-soon-banner h2 {
    color: #fff !important;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .coming-soon-banner {
        height: 200px;
    }

    .coming-soon-banner h2 {
        font-size: 24px;
    }
}

/* =========================================
   Testimonial Slider Styles
   ========================================= */
.testimonials-section {
    padding: 80px 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
}

.testimonials-header {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.testimonials-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.testimonials-track {
    display: flex;
    width: max-content;
    animation: marquee 120s linear infinite;
    /* Slow scroll for readability */
}

.testimonials-track:hover {
    animation-play-state: paused;
}

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

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

    /* Assumes content is duplicated once */
}

.testimonial-card {
    width: 380px;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin: 0 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    /* Allow text wrapping */
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(237, 50, 90, 0.12);
    border-color: rgba(237, 50, 90, 0.3);
}

.t-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.t-stars {
    color: #f1c40f;
    /* Gold star */
    font-size: 14px;
    letter-spacing: 2px;
}

.t-source {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 1px;
}

/* Quote icon */
.t-quote-icon {
    font-size: 24px;
    color: rgba(237, 50, 90, 0.1);
    margin-bottom: 10px;
}

.t-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
}

.t-footer {
    display: flex;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.t-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ed325a, #aa2340);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-right: 12px;
}

.t-author-info {
    display: flex;
    flex-direction: column;
}

.t-name {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.t-date {
    font-size: 12px;
    color: #999;
}

/* Constructive Criticism Highlight */
.testimonial-card.constructive {
    border-left: 4px solid #f0932b;
    /* Orange accent */
}

.testimonial-card.constructive .t-quote-icon {
    color: rgba(240, 147, 43, 0.2);
}

/* =========================================
   Mobile Team Cards Adjustments
   ========================================= */
@media screen and (max-width: 768px) {
    .team-member {
        height: 550px !important;
        /* Taller card */
        width: 100%;
        overflow: hidden;
        position: relative;
    }

    .team-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Center background image behavior */
        object-position: center;
    }
}