:root{
    --vino: #7B1734;
    --vino2: #9B2242;
    --vino3: #5A1027;
    --vino4: #B8335A;
    --blanco: #ffffff;
    --gris: #f5f7fa;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html{
    scroll-behavior: smooth;
}

body{
    background: white;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

#particles-js{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s ease;
}

.logo {
    display: none; 
}

.logo-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px; 
}

.logo-image img {
    height: 100%; 
    width: auto;   
    max-width: 100%; 
    object-fit: contain; 
}

.logo:hover {
    transform: scale(1.03);
}

.navbar ul {
    display: flex;
    gap: 35px;
    list-style: none;
    align-items: center;
}

.navbar a {
    color: var(--vino);
    text-decoration: none;
    font-weight: 500;
}

@media (min-width: 769px) {
    .navbar ul > li > a {
        position: relative;
        padding: 8px 0;
        transition: color 0.3s ease;
    }

    .navbar ul > li > a::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: var(--vino);
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform: translateX(-50%);
    }

    .navbar ul > li > a:hover {
        color: var(--vino2);
    }

    .navbar ul > li > a:hover::after {
        width: 100%;
    }
}

.navbar ul li {
    position: relative;
}

.dropdown > a {
    cursor: pointer;
}

.submenu {
    position: absolute;
    top: 120%;
    left: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-width: 180px;
    box-shadow: 0 15px 35px rgba(123, 23, 52, 0.08);
    border: 1px solid rgba(123, 23, 52, 0.06);
    border-radius: 14px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (min-width: 769px) {
    .dropdown:hover .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

.submenu li {
    width: 100%;
}

.submenu a {
    display: block;
    padding: 10px 16px;
    color: #444;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.submenu a:hover {
    background: rgba(123, 23, 52, 0.06);
    color: var(--vino);
    padding-left: 22px;
}

.hero{
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #4A0E21 0%, #7B1734 35%, #9B2242 70%, #C13B63 100%);
    color: white;
    overflow: hidden;
}

.hero-content{
    position: relative;
    z-index: 5;
    max-width: 900px;
    padding: 20px;
}

.badge{
    background: rgba(255,255,255,.15);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1{
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero p{
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-buttons{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary{
    background: white;
    color: var(--vino);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
}

.btn-secondary{
    border: 2px solid white;
    padding: 15px 35px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
}

.stats{
    padding: 100px 10%;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-card{
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,.1);
    width: 280px;
    text-align: center;
}

.counter{
    font-size: 3rem;
    color: var(--vino);
}

.services{
    padding: 100px 10%;
    background: var(--gris);
}

.services h2,
.calculator h2,
.contact h2{
    text-align: center;
    margin-bottom: 50px;
    color: var(--vino);
}

.cards{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: start;
}

.card{
    background: white;
    padding: 35px;
    border-radius: 20px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 180px; 
}

.card p {
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    overflow: hidden !important;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.4s ease !important;
}

.card.abierto {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(123, 23, 52, 0.12);
}

.card.abierto p {
    max-height: 200px !important;
    opacity: 1 !important;
    margin-top: 15px !important;
}

.card.abierto h3 {
    color: var(--vino);
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 35px rgba(123, 23, 52, 0.12);
    }

    .card:hover p {
        max-height: 200px !important;
        opacity: 1 !important;
        margin-top: 15px !important;
    }

    .card:hover h3 {
        color: var(--vino);
    }
}

.calculator{
    padding: 100px 10%;
    text-align: center;
    background: var(--gris);
}

.calculator input{
    width: 400px;
    max-width: 100%;
    margin: 25px 0;
}

.contact{
    padding: 100px 10%;
}

.contact form{
    max-width: 700px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact input,
.contact textarea{
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    resize: none;
}

.contact button{
    background: var(--vino);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.pie-pagina-premium {
    background-color: #5b0c24 !important;
    padding: 30px 0;
    width: 100% !important;
    box-sizing: border-box;
    display: block !important;
}

.contenedor-pie {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex !important;
    align-items: center !important;
    position: relative; 
    box-sizing: border-box;
}

.bloque-redes {
    display: flex !important;
    gap: 25px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2;
}

.bloque-redes a {
    color: #ffffff !important;
    opacity: 0.8;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-decoration: none !important;
    border: none !important; 
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.bloque-redes a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.bloque-redes svg {
    width: 24px !important;
    height: 24px !important;
    fill: currentColor !important;
}

.texto-copyright {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    width: auto !important;
    font-size: 14px;
    color: #ffffff !important;
    opacity: 0.9;
    white-space: nowrap;
    z-index: 1;
}

.enlace-telefono-pie {
    gap: 8px !important;
}

.numero-pie {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #ffffff;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    z-index: 1000;
    background-color: #25D366;
    border-radius: 50%;
    border: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), bottom 0.4s ease-in-out;
    text-decoration: none !important;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 50% !important; 
    height: auto !important;
    object-fit: contain !important;
    display: block;
    transform: scale(1.5);
}

.about{
    padding: 80px 10%;
    background: white;
}

.about-container{
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img{
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0,0,0,.12);
}

.section-tag{
    color: var(--vino);
    font-weight: 700;
    letter-spacing: 2px;
}

.about-content h2 {
    margin: 20px 0;
    font-size: 3.5rem;
    color: var(--vino3);
    line-height: 1.1;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #444;
    font-size: 1.3rem;
}

.about-highlights{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 15px;
    margin-top: 30px;
}

.about-highlights div{
    background: #fafafa;
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid var(--vino);
}

.history-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.history-container {
    max-width: 1100px;
    margin: 0 auto;
}

.history-header {
    text-align: center;
    margin-bottom: 60px;
}

.history-header span {
    color: var(--vino);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.history-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin: 10px 0 20px 0;
}

.history-header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
    border-left: 3px solid rgba(123, 23, 52, 0.15);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: -38px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--vino);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(123, 23, 52, 0.2);
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-badge {
    transform: scale(1.3);
}

.timeline-content {
    background: #fafafa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(123, 23, 52, 0.2);
}

.timeline-content h3 {
    color: var(--vino);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.logos-section {
    padding: 80px 0;
    background: #ffffff;
    overflow: hidden;
}

.logos-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--vino);
}

.logos-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.logos-slider::before,
.logos-slider::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.logos-slider::before {
    left: 0;
    top: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.logos-slider::after {
    right: 0;
    top: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.logos-track {
    display: flex;
    width: max-content; 
    animation: scrollLogos 30s linear infinite;
}

.logo-item {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 35px;
}

.logo-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all .35s ease;
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes heroFade{
    from{ opacity: 0; transform: translateY(50px); }
    to{ opacity: 1; transform: translateY(0); }
}

.reveal{
    opacity: 0;
    transform: translateY(80px) scale(.95);
    transition: all 1s cubic-bezier(.16,1,.3,1);
}

.reveal.active{
    opacity: 1;
    transform: translateY(0) scale(1);
}

.efecto-entrada {
    animation: heroFade 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content.reveal {
    opacity: 0;
    transform: translateY(80px) scale(.95);
    transition: none !important;
}

.hero-content.reveal.active {
    animation: subirHeroEfecto 1.2s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes subirHeroEfecto {
    from { opacity: 0; transform: translateY(80px) scale(.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.contact form.reveal {
    opacity: 0;
    transform: translateY(80px) scale(.95);
    transition: none !important;
}

.contact form.reveal.active {
    animation: subirContactoEfecto 1.2s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes subirContactoEfecto {
    from { opacity: 0; transform: translateY(80px) scale(.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1000;
    transition: transform 0.2s ease;
}

.menu-toggle:active {
    transform: scale(0.9);
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: var(--vino);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (min-width: 769px) {
    .submenu { overflow: visible !important; }
    .submenu::before {
        content: "";
        position: absolute;
        top: -7px;
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
        width: 14px;
        height: 14px;
        background: rgba(255, 255, 255, 0.92); 
        border-top: 1px solid rgba(123, 23, 52, 0.06);
        border-left: 1px solid rgba(123, 23, 52, 0.06);
        z-index: -1;
    }
}

.hero-logo-badge {
    display: inline-flex !important;
    align-self: flex-start; 
    width: max-content !important; 
    background: rgba(255, 255, 255, 0.80) !important; 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 28px !important;  
    border-radius: 50px !important; 
    margin-top: 60px !important;
    margin-bottom: 30px !important; 
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-logo-badge img {
    height: 100px !important;
    width: auto !important;
    display: block;
    object-fit: contain;
}


@media (max-width: 1100px) {
    .navbar {
        padding: 15px 4% !important; 
    }
    .navbar ul {
        gap: 15px !important; 
    }
    .navbar ul li a {
        font-size: 0.9rem !important; 
    }
}

.whatsapp-float.en-footer {
    bottom: 100px !important; 
}

@media (max-width: 768px) {
    
    .hero {
        height: auto !important;
        min-height: 100vh !important;
        padding-top: 120px !important;  
        padding-bottom: 60px !important;
        overflow: visible !important;   
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .navbar {
        padding: 10px 5% !important; 
        height: 75px !important;        
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .logo-image {
        display: flex !important;
        align-items: center !important; 
        height: 48px !important;        
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .logo-image img {
        height: 100% !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        display: block !important;
    }

    .btn, .btn-servicios, .hero-buttons a, .boton, .btn-primary, .btn-secondary {
        width: 90% !important;        
        max-width: 290px !important;   
        height: auto !important;        
        white-space: normal !important; 
        word-wrap: break-word !important;
        box-sizing: border-box !important;
        display: inline-flex !important; 
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 14px 20px !important; 
        font-size: 0.95rem !important;
        line-height: 1.3 !important;   
    }

    .hero-buttons {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .menu-toggle {
        display: flex;
    }

    .navbar ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        padding: 110px 20px 40px 20px;
        overflow-y: auto;
    }

    .navbar ul.active { right: 0; }
    .navbar ul li { width: 100%; text-align: center; }
    
    .navbar ul li a {
        font-size: 1.2rem;
        color: #333;
        display: inline-block;
        width: 100%;
        padding: 10px 0;
        -webkit-tap-highlight-color: transparent;
    }

    .navbar .dropdown { position: relative; width: 100%; }
    .navbar .dropdown.open > a { color: var(--vino); font-weight: 700; }

    .navbar .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        width: 100%;
        margin-top: 10px;
        padding: 0;
        background: rgba(123, 23, 52, 0.05) !important;
        border-radius: 12px;
        gap: 0;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
    }

    .navbar .dropdown.open .submenu { display: flex; flex-direction: column; }
    .navbar .submenu li a {
        font-size: 1.1rem;
        color: #555;
        padding: 12px 0 !important;
        width: 100%;
    }

    .navbar .submenu li a:hover {
        background: rgba(123, 23, 52, 0.08) !important;
        color: var(--vino) !important;
        padding-left: 0 !important; 
    }

    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .hero h1 { font-size: 2.3rem; }
    .about-container { grid-template-columns: 1fr; }
    .about-highlights { grid-template-columns: 1fr; gap: 20px; }
    .history-header h2 { font-size: 2rem; }
    .timeline-content { padding: 20px; }
    
    .services, .calculator, .contact, .contenedor-pie {
        width: 100% !important;
        overflow: hidden !important;
    }

    .hero-logo-badge {
        display: inline-flex !important;
        width: auto !important;          
        max-width: 85% !important;       
        margin-top: 20px !important;     
        margin-bottom: 20px !important;  
        padding: 8px 22px !important;    
    }
    .hero-logo-badge img {
        height: 50px !important;         
        width: auto !important;          
    }
    .hero p {
        font-size: 1.1rem !important;
        margin-bottom: 30px !important;
    }

    .contenedor-pie {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center !important;
        padding: 0 20px;
    }
    .texto-copyright {
        position: static !important;
        transform: none !important;
        text-align: center !important;
        white-space: normal !important; 
        display: block !important;
        width: 100% !important;
        margin-top: 15px !important;
    }
    .bloque-redes {
        flex-wrap: wrap !important; 
        justify-content: center !important;
        width: 100% !important;
        gap: 15px !important;
    }

    .whatsapp-float.en-footer {
        bottom: 160px !important; 
    }
}

.footer-direccion {
    display: flex;
    align-items: center;
    max-width: 300px; 
}


.direccion-link {
    display: block !important;        
    text-align: right !important;     
    max-width: 260px !important;      
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.88rem !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.direccion-link:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

@media (min-width: 769px) {
    .footer-direccion {
        margin-left: auto;
    }
}


.pie-pagina-premium {
    width: 100% !important;
    background-color: var(--vino);
    padding: 25px 0 !important;
    box-sizing: border-box !important;
}

.contenedor-pie {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 4% !important;
    box-sizing: border-box !important;
}

.bloque-redes, .texto-copyright, .footer-direccion {
    flex: 1 !important;
    margin: 0 !important;
}

.bloque-redes {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    justify-content: flex-start !important; 
}

.texto-copyright {
    text-align: center !important; 
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem !important;
}

.footer-direccion {
    display: flex !important;
    justify-content: flex-end !important; 
}


.enlace-telefono-pie, .direccion-link {
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.88rem !important;
    transition: all 0.3s ease !important;
}

.enlace-telefono-pie {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-right: 5px !important;
}

.direccion-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: right !important;
    max-width: 320px !important;
    line-height: 1.3 !important;
}

.bloque-redes svg {
    width: 18px !important;
    height: 18px !important;
    fill: #ffffff !important; 
    transition: opacity 0.3s ease !important;
}

.direccion-link {
    display: inline !important;
}

.pin-maps {
    display: inline-block !important;
    vertical-align: -2px !important; 
    margin-right: 4px !important;    
    stroke: #ffffff !important;
    fill: none !important;
    width: 16px !important;
    height: 16px !important;
}

.enlace-telefono-pie:hover, .direccion-link:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.bloque-redes a:hover svg {
    opacity: 0.7 !important;
}

@media (max-width: 768px) {
    .contenedor-pie {
        flex-direction: column !important; 
        gap: 20px !important;
        text-align: center !important;
        padding: 25px 20px !important;
    }

    .bloque-redes, .texto-copyright, .footer-direccion {
        flex: none !important;
        width: 100% !important;
    }

    .bloque-redes {
        justify-content: center !important;
        order: 1 !important; 
    }

    .footer-direccion {
        justify-content: center !important;
        order: 2 !important; 
    }

    .direccion-link {
        text-align: center !important;
        justify-content: center !important;
    }

    .texto-copyright {
        order: 3 !important; 
    }
}

.card-desplegable {
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid var(--vino) !important;
}

.card-desplegable:hover {
    background: rgba(123, 23, 52, 0.02) !important;
}

.lista-desplegable {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    opacity: 0;
}

.card-desplegable.abierto .lista-desplegable {
    max-height: 350px; 
    opacity: 1;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    transition: max-height 0.5s ease-in-out;
}

.card-desplegable.abierto h3 span {
    display: inline-block;
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.valores-seccion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 60px 8%;
    max-width: 1200px;
    margin: 0 auto; 
}

.valores-tarjeta {
    background: #ffffff !important;
    padding: 40px 30px !important;
    border-radius: 15px !important;
    text-align: center !important;
    border: 1px solid rgba(123, 23, 52, 0.1) !important; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important; 
}

.valores-tarjeta:hover {
    transform: translateY(-8px) !important; 
    box-shadow: 0 15px 30px rgba(123, 23, 52, 0.12) !important; 
    border-color: var(--vino) !important; 
}

.valores-icono {
    font-size: 3rem !important;
    margin-bottom: 20px !important;
    display: block !important;
}

.valores-tarjeta h3 {
    color: var(--vino) !important;
    font-size: 1.4rem !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
}

.valores-tarjeta p {
    color: #555555 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

@media (max-width: 768px) {
    .valores-seccion-grid {
        grid-template-columns: 1fr !important; 
        padding: 40px 20px !important;         
        gap: 20px !important;                  
    }

    .valores-tarjeta {
        padding: 30px 20px !important;         
    }

    .valores-icono {
        font-size: 2.5rem !important;         
    }
    
    .valores-tarjeta h3 {
        font-size: 1.25rem !important;        
    }
}

@media (max-width: 1366px) {
    
    .hero {
        min-height: auto !important;
        padding: 140px 5% 60px 5% !important; 
    }

    .hero-content {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
    }

    .hero-logo-badge {
        width: 110px !important;      
        height: 65px !important;       
        border-radius: 12px !important; 
        margin: 0 auto 15px auto !important; 
        padding: 8px 15px !important; 
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-logo-badge img {
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important; 
    }

  
    .hero-left h1 {
        font-size: 2.3rem !important; 
        line-height: 1.3 !important;
        text-align: center !important;
    }

    .hero-right p {
        font-size: 1rem !important;
        max-width: 650px !important;  
        margin: 0 auto 20px auto !important; 
    }

    .hero-buttons {
        justify-content: center !important;
    }
}

.about, .services {
    flex: 1;
}

.seccion-contacto-premium {
    padding: 60px 8%;
    max-width: 1300px;
    margin: 0 auto;
    min-height: 80vh;
    display: block;
}

.contacto-premium-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: start;
}

.contacto-col-info, .contacto-col-mapa {
    display: flex;
    flex-direction: column;
}

.contacto-premium-container h2 {
    color: var(--vino3);
    font-size: 2.4rem;
    margin: 10px 0 20px 0;
    font-weight: 700;
}

.bajada-texto {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.grid-canales-comunicacion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tarjeta-canal-link {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(123, 23, 52, 0.08);
    padding: 18px 24px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.canal-icono-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    background: rgba(123, 23, 52, 0.05);
    color: var(--vino);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.canal-icono-wrapper stroke, 
.canal-icono-wrapper svg {
    width: 22px;
    height: 22px;
    fill: none;
}

.canal-texto h3 {
    font-size: 1.1rem;
    color: #222;
    font-weight: 600;
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.canal-texto p {
    font-size: 0.95rem;
    color: #666;
    margin: 0 !important;
    opacity: 1 !important;
    max-height: none !important;
}

.tarjeta-canal-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(123, 23, 52, 0.08);
    border-color: rgba(123, 23, 52, 0.25);
}

.tarjeta-canal-link:hover .canal-texto h3 {
    color: var(--vino);
}

.canal-wpp-hover:hover .canal-icono-wrapper { background: #25D366; }
.icono-wpp-img { width: 26px; height: auto; object-fit: contain; }

.canal-fb-hover:hover .canal-icono-wrapper { background: #1877F2; color: #fff; }
.canal-fb-hover svg { fill: currentColor; }

.canal-ig-hover:hover .canal-icono-wrapper { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #fff; }
.canal-ig-hover svg { fill: currentColor; }

.canal-tel-hover:hover .canal-icono-wrapper {
    background: var(--vino); 
    color: #ffffff;        
}

.contenedor-direccion-física {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--gris);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--vino);
}

.pin-contacto-page {
    color: var(--vino);
    flex-shrink: 0;
    margin-top: 2px;
}

.contenedor-direccion-física p {
    font-size: 1rem;
    color: #444;
    line-height: 1.4;
}

.mapa-interactivo-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

@media (max-width: 900px) {
    .contacto-premium-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .seccion-contacto-premium {
        padding: 40px 5%;
    }
    .mapa-interactivo-wrapper {
        height: 320px;
    }
}

a.contenedor-direccion-física {
    display: flex;          
    text-decoration: none;  
    color: inherit;         
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contenedor-direccion-física:hover {
    cursor: pointer;
    background-color: #fcfcfc; 
}

.contenedor-direccion-física:hover p {
    color: var(--vino); 
    transition: color 0.3s ease;
}

.texto-proposito {
    text-align: justify;
    line-height: 1.7; 
}

.contenido-legal {
    max-width: 850px;
    margin: 0 auto;
}

.contenido-legal h3 {
    font-size: 1.4rem;
    color: var(--vino, #7A1C31);
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contenido-legal p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #333333;
    font-size: 1rem;
}

.contenido-legal ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.contenido-legal li {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 12px;
    color: #444444;
    text-align: justify;
}

.contenido-legal li strong {
    color: var(--vino, #7A1C31);
}

.nota-alerta {
    background-color: rgba(122, 28, 49, 0.05); 
    border-left: 4px solid var(--vino, #7A1C31);
    padding: 18px 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.nota-alerta p {
    margin: 0;
    font-style: italic;
    color: #555555;
}

.enlace-legal {
    color: var(--vino, #7A1C31);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.enlace-legal:hover {
    text-decoration: underline;
}

.contenido-legal p[style*="margin-top: 40px"] {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 20px;
}

@media (max-width: 768px) {
    .contenido-legal h2 {
        font-size: 2rem;
    }
    
    .contenido-legal h3 {
        font-size: 1.2rem;
        margin-top: 30px;
    }

    .contenido-legal p, 
    .contenido-legal li {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: left; 
        hyphens: auto;   
    }
    
    .nota-alerta {
        padding: 15px;
    }
}

.bloque-copyright-pie {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.enlace-privacidad-pie {
    color: #a0a0a0; 
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.enlace-privacidad-pie:hover {
    color: var(--vino, #7A1C31);
    text-decoration: underline;
}

.leyenda-privacidad-form {
    font-size: 0.8rem;
    color: #666666;
    margin: -10px 0 20px 0;
    text-align: center;
    line-height: 1.4;
}

.leyenda-privacidad-form a {
    color: var(--vino, #7A1C31);
    text-decoration: none;
    font-weight: 500;
}

.leyenda-privacidad-form a:hover {
    text-decoration: underline;
}

footer.pie-pagina-premium .contenedor-pie .bloque-copyright {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important; 
    text-align: center !important;
}

footer.pie-pagina-premium .contenedor-pie .texto-copyright {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    white-space: nowrap !important;
    color: #ffffff !important;
}

footer.pie-pagina-premium .contenedor-pie .enlace-privacidad-pie {
    display: inline-block !important;
    color: rgba(255, 255, 255, 0.7) !important; 
    text-decoration: none !important;
    font-size: 0.9rem !important; 
    transition: color 0.3s ease !important;
}

footer.pie-pagina-premium .contenedor-pie .enlace-privacidad-pie:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

header.header-oscuro,
header.header-oscuro .navbar {
    background-color: var(--vino, #7A1C31) !important;
    background: var(--vino, #7A1C31) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

header.header-oscuro .navbar ul li a {
    color: #ffffff !important;
}

header.header-oscuro .navbar ul li .submenu {
    background-color: #5a1222 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

header.header-oscuro .navbar ul li .submenu li a {
    color: rgba(255, 255, 255, 0.85) !important;
    background: transparent !important;
}

header.header-oscuro .navbar ul li .submenu li a:hover {
    color: #ffffff !important;
    background-color: var(--vino, #7A1C31) !important;
}

header.header-oscuro .logo-image img {
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
}

header.header-oscuro .menu-toggle .bar {
    background-color: #ffffff !important;
}

/* ==========================================================================
   FIX RESPONSIVO: COHESIÓN DEL MENÚ OSCURO EN MÓVIL
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Forzamos a que la cortina desplegable sea del vino oscuro del submenú */
    header.header-oscuro .navbar ul,
    header.header-oscuro .nav-menu,
    header.header-oscuro .navbar-collapse {
        background-color: #5a1222 !important; /* Vino oscuro elegante */
        background: #5a1222 !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3) !important;
    }

    /* 2. Los enlaces dentro de la cortina móvil */
    header.header-oscuro .navbar ul li a {
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding: 15px 25px !important;
    }

    /* 3. Por si abren el submenú ("Misión/Visión") dentro del celular, le damos más profundidad */
    header.header-oscuro .navbar ul li .submenu {
        background-color: #3d0b16 !important; /* Un tono aún más oscuro */
        box-shadow: none !important;
        padding-left: 15px !important;
    }

    /* 4. El botón de cerrar (la X) o los iconos en móvil que deban ser blancos */
    header.header-oscuro .close-menu,
    header.header-oscuro .nav-close {
        color: #ffffff !important;
    }
}

/* ==========================================================================
   ESTILOS ADICIONALES: TARJETA DE CORREO ELECTRÓNICO
   ========================================================================== */

/* Color de fondo sutil para el círculo del icono (usando tu tono vino con opacidad) */
.email-bg {
    background-color: rgba(123, 23, 52, 0.08) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Color por defecto del sobre SVG */
.email-bg svg {
    color: var(--vino);
    transition: color 0.3s ease;
}

/* Efecto Hover: Al pasar el cursor sobre la tarjeta, el círculo se pinta de color vino y el sobre de blanco */
.canal-email-hover:hover .email-bg {
    background-color: var(--vino) !important;
}

.canal-email-hover:hover .email-bg svg {
    color: #ffffff !important;
}