/* ==========================================================================
   Vinartes Contacto — Premium Styles
   Paleta: #021F67 (azul principal), #C17B2D (dorado/ámbar), #E9E3DD (crema), #070707 (negro)
   ========================================================================== */

/* ---------- Google Fonts import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* ---------- CSS Custom Properties ---------- */
.vc-contacto-section,
.vc-contacto-section * {
    box-sizing: border-box;
}

.vc-contacto-section {
    --vc-blue:       #021F67;
    --vc-blue-light: #0a3296;
    --vc-gold:       #C17B2D;
    --vc-gold-light: #d4943e;
    --vc-cream:      #E9E3DD;
    --vc-cream-dark: #ddd5cb;
    --vc-black:      #070707;
    --vc-white:      #ffffff;
    --vc-gray:       #6b7280;
    --vc-error:      #c0392b;
    --vc-success:    #1a7a4b;

    --vc-font-serif:  'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    --vc-font-alt:    'Cormorant Garamond', Georgia, serif;
    --vc-font-sans:   'Jost', 'Helvetica Neue', Arial, sans-serif;

    --vc-radius:      10px;
    --vc-radius-lg:   18px;
    --vc-shadow:      0 8px 40px rgba(2, 31, 103, 0.10);
    --vc-shadow-md:   0 4px 20px rgba(2, 31, 103, 0.14);
    --vc-transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    background-color: var(--vc-white);
    width: 100%;
    padding: 0;
    margin: 0;
    font-family: var(--vc-font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Top Ornament ---------- */
.vc-ornament-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 36px 5% 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.vc-ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--vc-cream-dark), transparent);
}

.vc-ornament-diamond {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Split Layout ---------- */
.vc-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 60px;
    gap: 60px;
    align-items: start;
}

/* ========== LEFT PANEL ========== */
.vc-identity-panel {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.vc-identity-image-wrap {
    position: relative;
    border-radius: var(--vc-radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    max-height: 520px;
    box-shadow: var(--vc-shadow);
}

.vc-identity-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.8s ease;
}

.vc-identity-image-wrap:hover .vc-identity-image {
    transform: scale(1.04);
}

.vc-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(2, 31, 103, 0.60) 100%
    );
    pointer-events: none;
}

.vc-image-badge {
    position: absolute;
    bottom: 22px;
    right: 22px;
    background: var(--vc-gold);
    color: var(--vc-white);
    border-radius: 10px;
    padding: 12px 16px;
    text-align: center;
    font-family: var(--vc-font-sans);
}

.vc-badge-number {
    display: block;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 4px;
}

.vc-badge-text {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.9;
    line-height: 1.4;
}

/* Tagline */
.vc-identity-tagline {
    text-align: center;
    padding: 0 8px;
}

.vc-tagline-label {
    font-family: var(--vc-font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--vc-gold);
    margin: 0 0 8px;
}

.vc-tagline-copy {
    font-family: var(--vc-font-alt);
    font-size: 20px;
    font-weight: 300;
    color: var(--vc-blue);
    margin: 0;
    line-height: 1.4;
}

/* Contact chips */
.vc-contact-chips {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vc-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--vc-radius);
    border: 1.5px solid var(--vc-cream-dark);
    text-decoration: none;
    color: var(--vc-blue);
    font-family: var(--vc-font-sans);
    font-size: 13px;
    font-weight: 400;
    background: var(--vc-cream);
    transition: var(--vc-transition);
}

.vc-chip:hover {
    border-color: var(--vc-blue);
    background: var(--vc-blue);
    color: var(--vc-white);
    transform: translateY(-2px);
    box-shadow: var(--vc-shadow-md);
}

.vc-chip-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vc-gold);
    transition: var(--vc-transition);
}

.vc-chip:hover .vc-chip-icon {
    color: rgba(255,255,255,0.8);
}

.vc-chip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Club logo */
.vc-club-logo {
    max-height: 56px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    opacity: 0.80;
    transition: opacity 0.3s;
}

.vc-club-logo:hover {
    opacity: 1;
}

/* ========== RIGHT PANEL ========== */
.vc-form-panel {
    background: var(--vc-white);
}

/* Form header */
.vc-form-header {
    margin-bottom: 36px;
}

.vc-main-logo-wrap {
    margin-bottom: 24px;
}

.vc-main-logo {
    max-height: 64px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    display: block;
}

.vc-section-label {
    font-family: var(--vc-font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--vc-gold);
    margin: 0 0 12px;
}

.vc-form-title {
    font-family: var(--vc-font-serif);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    color: var(--vc-blue);
    line-height: 1.2;
    margin: 0 0 16px;
}

.vc-form-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--vc-gold);
}

.vc-form-subtitle {
    font-family: var(--vc-font-sans);
    font-size: 15px;
    font-weight: 300;
    color: var(--vc-gray);
    line-height: 1.7;
    margin: 0;
    max-width: 480px;
}

/* ---- Form Fields ---- */
.vc-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.vc-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.vc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vc-label {
    font-family: var(--vc-font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--vc-blue);
    display: flex;
    align-items: center;
    gap: 4px;
}

.vc-required {
    color: var(--vc-gold);
    font-size: 14px;
    line-height: 1;
}

/* Input wrapper */
.vc-input-wrap,
.vc-textarea-wrap {
    position: relative;
}

.vc-input-icon,
.vc-textarea-icon {
    position: absolute;
    right: 14px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vc-gold);
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: color 0.2s;
    opacity: 0.7;
}

.vc-textarea-icon {
    top: 16px;
    transform: none;
}

.vc-input,
.vc-textarea {
    width: 100%;
    padding: 14px 44px 14px 16px;
    border: 1.5px solid var(--vc-cream-dark);
    border-radius: var(--vc-radius);
    background: var(--vc-cream);
    font-family: var(--vc-font-sans);
    font-size: 15px;
    font-weight: 400;
    color: var(--vc-black);
    outline: none;
    transition: var(--vc-transition);
    -webkit-appearance: none;
    appearance: none;
}

.vc-input::placeholder,
.vc-textarea::placeholder {
    color: #a0a8b8;
    font-weight: 300;
}

.vc-input:hover,
.vc-textarea:hover {
    border-color: #b0b8cc;
    background: #f0ecf8;
}

.vc-input:focus,
.vc-textarea:focus {
    border-color: var(--vc-blue);
    background: var(--vc-white);
    box-shadow: 0 0 0 4px rgba(2, 31, 103, 0.08);
}

.vc-input:focus + .vc-input-icon,
.vc-textarea:focus + .vc-textarea-icon {
    color: var(--vc-blue);
}

/* Textarea */
.vc-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.65;
    padding-top: 16px;
}

/* Character count */
.vc-char-count {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-family: var(--vc-font-sans);
    font-size: 11px;
    color: #a0a8b8;
    pointer-events: none;
    transition: color 0.2s;
}

.vc-char-count.vc-warn {
    color: var(--vc-gold);
}

.vc-char-count.vc-limit {
    color: var(--vc-error);
}

/* Error states */
.vc-input.vc-has-error,
.vc-textarea.vc-has-error {
    border-color: var(--vc-error);
    background: #fdf5f5;
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.08);
}

.vc-field-error {
    font-family: var(--vc-font-sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--vc-error);
    display: none;
    align-items: center;
    gap: 4px;
    padding-left: 4px;
}

.vc-field-error.vc-visible {
    display: flex;
}

/* Global message */
.vc-form-message {
    padding: 16px 20px;
    border-radius: var(--vc-radius);
    font-family: var(--vc-font-sans);
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid transparent;
}

.vc-form-message.vc-msg-success {
    background: #f0fdf4;
    border-color: var(--vc-success);
    color: var(--vc-success);
}

.vc-form-message.vc-msg-error {
    background: #fef2f2;
    border-color: var(--vc-error);
    color: var(--vc-error);
}

/* Submit row */
.vc-submit-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.vc-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 34px;
    background: var(--vc-blue);
    color: var(--vc-white);
    border: none;
    border-radius: var(--vc-radius);
    font-family: var(--vc-font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--vc-transition);
    position: relative;
    overflow: hidden;
}

.vc-submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.vc-submit-btn:hover {
    background: var(--vc-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 31, 103, 0.30);
}

.vc-submit-btn:hover::before {
    opacity: 1;
}

.vc-submit-btn:active {
    transform: translateY(0);
}

.vc-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vc-btn-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.vc-submit-btn:hover .vc-btn-icon {
    transform: translateX(4px);
}

/* Spinning loader */
@keyframes vc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vc-spin {
    animation: vc-spin 1s linear infinite;
}

/* Privacy note */
.vc-privacy-note {
    font-family: var(--vc-font-sans);
    font-size: 11px;
    font-weight: 400;
    color: #a0a8b8;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    line-height: 1.4;
}

/* ---- Success State ---- */
.vc-success-state {
    text-align: center;
    padding: 60px 24px;
}

.vc-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--vc-cream);
    margin-bottom: 24px;
    border: 2px solid var(--vc-cream-dark);
}

.vc-success-title {
    font-family: var(--vc-font-serif);
    font-size: 30px;
    font-weight: 700;
    color: var(--vc-blue);
    margin: 0 0 12px;
}

.vc-success-text {
    font-family: var(--vc-font-sans);
    font-size: 16px;
    font-weight: 300;
    color: var(--vc-gray);
    line-height: 1.7;
    margin: 0 0 32px;
    max-width: 380px;
    margin-inline: auto;
}

.vc-success-back {
    font-family: var(--vc-font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--vc-blue);
    background: none;
    border: 1.5px solid var(--vc-blue);
    border-radius: var(--vc-radius);
    padding: 12px 28px;
    cursor: pointer;
    transition: var(--vc-transition);
}

.vc-success-back:hover {
    background: var(--vc-blue);
    color: var(--vc-white);
}

/* ---- Bottom strip ---- */
.vc-bottom-strip {
    background: var(--vc-blue);
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--vc-font-sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    flex-wrap: wrap;
}

.vc-dot {
    color: var(--vc-gold);
    font-size: 16px;
}

/* ---------- Logos block (desktop) ---------- */
.vc-logos-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vc-logos-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--vc-cream-dark) 30%, var(--vc-cream-dark) 70%, transparent);
}

.vc-logos-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
}

.vc-logo-item {
    display: flex;
    align-items: center;
}

.vc-logo-club {
    /* Desktop: alineado a la izquierda dentro del panel */
}

/* Mobile header logo: oculto por defecto en desktop */
.vc-mobile-logo-header {
    display: none;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 900px) {
    .vc-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }

    .vc-identity-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
    }

    .vc-identity-image-wrap {
        grid-column: 1 / -1;
        aspect-ratio: 16/7;
        max-height: 260px;
    }

    .vc-identity-tagline {
        text-align: center;
    }

    .vc-logos-row {
        justify-content: flex-start;
    }

    /* En tablet, el logo principal del form sigue visible */
    .vc-main-logo-wrap {
        display: block;
    }
}

/* Mobile ≤ 600px */
@media (max-width: 600px) {
    /* ---- Ornament ---- */
    .vc-ornament-top {
        padding: 20px 5% 12px;
    }

    /* ---- Layout: sin padding lateral para que la imagen corra full width ---- */
    .vc-layout {
        padding: 0 0 36px;   /* ← sin padding lateral en mobile */
        gap: 0;
    }

    /* ---- Identity panel: columna, sin gap ---- */
    .vc-identity-panel {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Imagen: full width, sin border-radius lateral, ocupa todo el ancho */
    .vc-identity-image-wrap {
        aspect-ratio: 4/3;
        max-height: 230px;
        width: 100%;
        border-radius: 0;          /* ← sin bordes laterales en mobile */
        margin-bottom: 0;
    }

    /* Tagline: CENTRADO forzado, bloque crema adherido bajo la imagen */
    .vc-identity-tagline {
        text-align: center !important;
        padding: 18px 20px 20px;
        background: var(--vc-cream);
        border-radius: 0;          /* ← tapa completo */
        margin-bottom: 0;
        width: 100%;
    }

    .vc-tagline-label {
        font-size: 10px;
        letter-spacing: 3px;
        text-align: center;
    }

    .vc-tagline-copy {
        font-size: 19px;
        text-align: center;
        margin: 6px 0 0;
    }

    /* Separador fino entre bloque crema y lo que sigue */
    .vc-identity-tagline + .vc-logos-block {
        margin-top: 0;
    }

    /* Logos block: centrado, con padding lateral restaurado */
    .vc-logos-block {
        gap: 20px;
        margin-bottom: 0;
        padding: 24px 5%;
        width: 100%;
        align-items: center;
    }

    .vc-logos-divider {
        width: 100%;
    }

    .vc-logos-row {
        justify-content: center;
        width: 100%;
    }

    .vc-club-logo {
        max-height: 52px;
        max-width: 170px;
        opacity: 1;
        display: block;
        margin: 0 auto;
    }

    /* Chip Instagram: centrado, debajo del logo */
    .vc-contact-chips {
        align-items: center;
        padding: 0 5% 28px;
        width: 100%;
    }

    .vc-chip {
        width: 100%;
        max-width: 260px;
        justify-content: center;
        margin: 0 auto;
        display: flex;
    }

    /* ---- Form panel: padding lateral restaurado, separador arriba ---- */
    .vc-form-panel {
        border-top: 2px solid var(--vc-cream-dark);
        padding: 28px 5% 0;
    }

    /* Logo principal Vinartes: centrado en mobile */
    .vc-main-logo-wrap {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .vc-main-logo {
        max-height: 54px;
        max-width: 190px;
    }

    /* Section label centrado */
    .vc-section-label {
        text-align: center;
    }

    /* Título centrado en mobile */
    .vc-form-title {
        font-size: 26px;
        text-align: center;
    }

    /* Subtítulo centrado */
    .vc-form-subtitle {
        font-size: 14px;
        text-align: center;
        margin-inline: auto;
    }

    /* Campos: stack vertical */
    .vc-field-group {
        grid-template-columns: 1fr;
    }

    /* Submit */
    .vc-submit-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .vc-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .vc-privacy-note {
        justify-content: center;
    }

    /* Bottom strip más compacto */
    .vc-bottom-strip {
        gap: 10px;
        padding: 16px 12px;
        font-size: 10px;
    }
}

/* Mobile muy chico ≤ 380px */
@media (max-width: 380px) {
    .vc-form-title {
        font-size: 22px;
    }

    .vc-submit-btn {
        font-size: 13px;
        padding: 14px 16px;
    }

    .vc-input,
    .vc-textarea {
        font-size: 14px;
    }
}
