/* ============================================
   BODEGA DE JORGE — Custom Styles
   Deep Navy + Warm Gold | Vibrant Modern
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #d4a017;
    color: #0f1d3a;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Floating Background Shapes --- */
.floating-shapes {
    z-index: 0;
}

.shape-circle-1 {
    position: absolute;
    top: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.08) 0%, transparent 70%);
    animation: floatShape 20s ease-in-out infinite;
}

.shape-circle-2 {
    position: absolute;
    bottom: 15%;
    left: -8%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 29, 58, 0.06) 0%, transparent 70%);
    animation: floatShape 25s ease-in-out infinite reverse;
}

.shape-triangle {
    position: absolute;
    top: 40%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(212, 160, 23, 0.05);
    animation: rotateShape 30s linear infinite;
    transform-origin: center;
}

.shape-square {
    position: absolute;
    top: 60%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: rgba(15, 29, 58, 0.04);
    transform: rotate(45deg);
    animation: floatShape 15s ease-in-out infinite;
}

.shape-dots {
    position: absolute;
    top: 25%;
    left: 15%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(212, 160, 23, 0.15) 2px, transparent 2px);
    background-size: 20px 20px;
    animation: floatShape 18s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-3deg); }
}

@keyframes rotateShape {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Navigation --- */
.nav-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav-header.scrolled {
    background: rgba(250, 246, 238, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(10, 22, 40, 0.08);
}

.nav-glass {
    display: none;
}

.nav-container {
    position: relative;
    z-index: 10;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0f1d3a;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.3s, background 0.3s;
}

.nav-link:hover {
    color: #d4a017;
    background: rgba(212, 160, 23, 0.08);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #d4a017;
    transition: width 0.3s, left 0.3s;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1.1rem;
    background: #d4a017;
    color: #0f1d3a;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.nav-cta-btn:hover {
    background: #e8b930;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
}

/* Mobile Menu */
.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
}

.menu-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #0f1d3a;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.3s, padding-left 0.3s;
}

.mobile-nav-link:hover {
    color: #d4a017;
    padding-left: 0.5rem;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #faf6ee 0%, #f5edd6 50%, #e8dcc0 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 160, 23, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(15, 29, 58, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    animation: heroFadeIn 1s ease-out both;
}

.hero-visual {
    animation: heroFadeIn 1s ease-out 0.3s both;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    animation: heroFadeIn 1s ease-out 0.1s both;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-image-accent {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid #d4a017;
    border-radius: 24px;
    z-index: -1;
}

.hero-img {
    box-shadow: 0 25px 80px rgba(10, 22, 40, 0.2);
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: scale(1.01);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 40px rgba(10, 22, 40, 0.12);
    z-index: 10;
    animation: floatCard 6s ease-in-out infinite;
}

.floating-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 160, 23, 0.1);
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.floating-card-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f1d3a;
    line-height: 1;
}

.floating-card-number span {
    font-size: 0.9rem;
    color: #d4a017;
}

.floating-card-label {
    font-size: 0.75rem;
    color: #0f1d3a;
    opacity: 0.6;
    margin-top: 2px;
}

.card-1 {
    top: 10%;
    left: -30px;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: -25px;
    animation-delay: 2s;
}

.card-3 {
    bottom: 8%;
    left: -20px;
    animation-delay: 4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Scroll Indicator */
.scroll-indicator {
    animation: heroFadeIn 1s ease-out 0.8s both;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(15, 29, 58, 0.3);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: #d4a017;
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(8px); }
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 2rem;
    background: #d4a017;
    color: #0f1d3a;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 60px;
    text-decoration: none;
    border: 2px solid #d4a017;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: #c4900f;
    border-color: #c4900f;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 160, 23, 0.4);
}

.btn-arrow {
    transition: transform 0.3s;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 2rem;
    background: transparent;
    color: #0f1d3a;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 60px;
    text-decoration: none;
    border: 2px solid rgba(15, 29, 58, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #d4a017;
    color: #d4a017;
    background: rgba(212, 160, 23, 0.05);
}

.btn-white {
    background: white;
    color: #0f1d3a;
    border-color: white;
}

.btn-white:hover {
    background: #f8f4e8;
    border-color: #f8f4e8;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    background: white;
    color: #0f1d3a;
    border-color: white;
}

/* --- Marquee --- */
.marquee-strip {
    background: #0f1d3a;
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.marquee-item {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex-shrink: 0;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- Section Shared --- */
.section {
    position: relative;
    z-index: 1;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d4a017;
    margin-bottom: 1rem;
}

/* --- About Section --- */
.about-section {
    background: #faf6ee;
}

.about-images {
    position: relative;
    min-height: 450px;
}

.about-img-main {
    position: relative;
    z-index: 2;
}

.about-img-accent {
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    background: #d4a017;
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

.about-img-secondary {
    z-index: 3;
    box-shadow: 0 15px 50px rgba(10, 22, 40, 0.15);
}

.about-pattern-accent {
    position: absolute;
    top: -30px;
    right: 40%;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, #d4a017 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.4;
    z-index: 0;
}

.about-feature {
    display: flex;
    flex-direction: column;
}

.about-feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 160, 23, 0.1);
    border-radius: 14px;
    margin-bottom: 0.75rem;
    transition: background 0.3s, transform 0.3s;
}

.about-feature:hover .about-feature-icon {
    background: #d4a017;
    transform: scale(1.05);
}

.about-feature:hover .about-feature-icon svg {
    stroke: #0f1d3a;
}

/* --- Services Section --- */
.services-section {
    background: #0a1628;
}

.services-deco-1,
.services-deco-2 {
    position: absolute;
    pointer-events: none;
}

.service-card {
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s ease;
    overflow: hidden;
}

.service-card:hover .service-card-inner {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(212, 160, 23, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4a017, #e8b930, #d4a017);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover .service-card-accent {
    opacity: 1;
}

.service-card-icon-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 160, 23, 0.1);
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 16px;
    transition: all 0.4s;
}

.service-card:hover .service-card-icon-wrap {
    background: #d4a017;
    border-color: #d4a017;
    transform: rotate(-5deg) scale(1.05);
}

.service-card:hover .service-card-icon svg {
    stroke: #0f1d3a;
}

/* --- Gallery Section --- */
.gallery-section {
    background: #faf6ee;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.4s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #0f1d3a 0%, #162a4a 50%, #0f1d3a 100%);
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(212, 160, 23, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(212, 160, 23, 0.1) 0%, transparent 60%);
}

.cta-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.cta-shape-1 {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(212, 160, 23, 0.08);
    border-radius: 50%;
}

.cta-shape-2 {
    position: absolute;
    bottom: -80px;
    right: -30px;
    width: 300px;
    height: 300px;
    background: rgba(212, 160, 23, 0.06);
    border-radius: 50%;
}

.cta-shape-3 {
    position: absolute;
    top: 50%;
    left: 60%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(212, 160, 23, 0.1);
    transform: rotate(45deg);
}

/* --- Contact Section --- */
.contact-section {
    background: white;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 160, 23, 0.1);
    border-radius: 12px;
}

.contact-form-card {
    background: #faf6ee;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(212, 160, 23, 0.15);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f1d3a;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: white;
    border: 2px solid rgba(15, 29, 58, 0.1);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #0f1d3a;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: #d4a017;
    box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.1);
}

.form-input::placeholder {
    color: rgba(15, 29, 58, 0.35);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1rem 2rem;
    background: #d4a017;
    color: #0f1d3a;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #c4900f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.35);
}

.btn-submit svg {
    transition: transform 0.3s;
}

.btn-submit:hover svg {
    transform: translate(3px, -3px);
}

.form-success {
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 0.5s ease-out;
}

.form-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 160, 23, 0.1);
    border-radius: 50%;
}

.form-success.hidden,
.contact-form.hidden {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Footer --- */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4a017, #e8b930, #d4a017);
}

.footer-logo {
    text-decoration: none;
}

.footer-bottom {
    gap: 0;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1023px) {
    .hero-section {
        padding-top: 6rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .floating-card.card-1 {
        left: 0;
    }

    .floating-card.card-2 {
        right: 0;
    }

    .about-images {
        margin-bottom: 2rem;
    }

    .about-img-secondary {
        right: -5px;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }

    .floating-card {
        display: none;
    }

    .section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .contact-form-card {
        padding: 1.5rem;
    }

    .about-img-secondary {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 1rem;
    }

    .about-images {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .service-card-inner {
        padding: 1.5rem;
    }
}
