/* Pase Cupón para Google Pay - Diseño Basado en Google Wallet Real */
.pass.google-layout {
    background: #ffffff;
    color: #202124;
    font-family: 'Roboto', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 400px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.08);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin: 8px 0;
}

/* Título encima de la tarjeta - Estilo Google Wallet */
.pass.google-layout::before {
    content: attr(data-pass-title);
    position: absolute;
    top: -32px;
    left: 0;
    right: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #5f6368;
    text-align: center;
    letter-spacing: 0.25px;
}

/* Header simplificado - Solo información esencial */
.pass.google-layout .pass-header {
    padding: 16px 20px 12px;
    background: #ffffff;
    display: grid;
    align-items: center;
    gap: 12px;
}

/* Header con logo: Logo circular | Empresa | Info */
.pass.google-layout .pass-header.has-logo {
    grid-template-columns: 48px 1fr auto;
}

/* Header sin logo: Empresa | Info */
.pass.google-layout .pass-header.no-logo {
    grid-template-columns: 1fr auto;
}

/* Logo circular - Estilo Google Wallet oficial */
.pass.google-layout .pass-header .logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.pass.google-layout .pass-header .logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Nombre de empresa - Estilo Google */
.pass.google-layout .pass-header .business-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: #202124;
    line-height: 1.4;
}

/* Header fields - Información del usuario estilo Google Wallet */
.pass.google-layout .pass-header .header-fields {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.pass.google-layout .pass-header .header-fields .field {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.pass.google-layout .pass-header .header-fields .field-key {
    font-size: 0.75rem;
    font-weight: 500;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.pass.google-layout .pass-header .header-fields .field-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #202124;
}

/* Strip section - Área principal del cupón */
.pass.google-layout .strip-section {
    padding: 24px 20px;
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    text-align: center;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pass.google-layout .strip-section.with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pass.google-layout .strip-section.with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.pass.google-layout .strip-section.with-image .primary-field {
    position: relative;
    z-index: 2;
}

/* Primary field - Valor principal del cupón */
.pass.google-layout .strip-section .primary-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: white !important;
    line-height: 1.1;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.pass.google-layout .strip-section .primary-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Body - Información adicional como texto simple */
.pass.google-layout .pass-body {
    padding: 16px 20px;
    background: #ffffff;
}

.pass.google-layout .pass-body .card-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Cambiado de 3 a 2 columnas */
    gap: 12px;
    margin-bottom: 12px;
}

.pass.google-layout .pass-body .field {
    /* Sin background, sin bordes, sin sombras - solo texto */
    padding: 8px 0;
}

.pass.google-layout .pass-body .field-key {
    font-size: 0.75rem;
    font-weight: 600;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.pass.google-layout .pass-body .field-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #202124;
    line-height: 1.3;
}

/* Primary Fields en Google Wallet - Estilo similar a Google Pass Builder */
.pass.google-layout .pass-body .strip-section {
    padding: 16px 0;
    text-align: center;
    margin-bottom: 16px;
    background: transparent !important; /* Sin fondo forzado */
}

.pass.google-layout .pass-body .primary-field {
    text-align: center;
    margin-bottom: 8px;
    background: transparent !important; /* Sin fondo forzado */
}

.pass.google-layout .pass-body .primary-label {
    font-size: 12px;
    font-weight: 500;
    color: #000000 !important; /* Negro forzado */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
    text-shadow: none !important; /* Sin glow */
    box-shadow: none !important; /* Sin sombras */
}

.pass.google-layout .pass-body .primary-value {
    font-size: 28px;
    font-weight: 600;
    color: #000000 !important; /* Negro forzado */
    line-height: 1.2;
    display: block;
    text-shadow: none !important; /* Sin glow */
    box-shadow: none !important; /* Sin sombras */
}

/* Footer - QR centrado y strip en el footer estilo Google Wallet */
.pass.google-layout .pass-footer {
    padding: 20px 20px 100px 20px; /* Padding bottom aumentado para el strip de 80px */
    background: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative; /* Para posicionar el strip absoluto */
}

/* QR Code centrado - Estilo Google Wallet */
.pass.google-layout .pass-footer .barcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 40%;
}

.pass.google-layout .pass-footer .barcode {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pass.google-layout .pass-footer .barcode img {
    border-radius: 4px;
    max-width: 120px;
    max-height: 120px;
}

/* Strip en el footer - Estilo Google Wallet - Cubre todo el ancho */
.pass.google-layout .pass-footer .strip-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(90deg, #1a73e8 0%, #4285f4 100%);
    border-radius: 0; /* Sin bordes redondeados */
    margin: 0; /* Sin márgenes */
}

.pass.google-layout .pass-footer .strip-footer.with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0; /* Sin bordes redondeados */
}

/* Powered by Google Wallet */
.pass.google-layout .pass-footer .powered-by {
    font-size: 0.75rem;
    color: #5f6368;
    font-weight: 400;
    letter-spacing: 0.25px;
    margin-top: 4px;
}

/* Puntos y contactos - Estilo Google Material */
.pass.google-layout .points-contacts {
    padding: 12px 20px;
    background: #f8f9fa;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pass.google-layout .points-contacts .points,
.pass.google-layout .points-contacts .contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pass.google-layout .points-contacts .points-value,
.pass.google-layout .points-contacts .contacts-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: 4px;
}

.pass.google-layout .points-contacts .points-label,
.pass.google-layout .points-contacts .contacts-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive para Google Pay */
@media (max-width: 420px) {
    .pass.google-layout .pass-header {
        padding: 12px 16px 8px;
    }

    .pass.google-layout .strip-section {
        padding: 20px 16px;
        min-height: 100px;
    }

    .pass.google-layout .strip-section .primary-value {
        font-size: 1.875rem;
    }

    .pass.google-layout .pass-body {
        padding: 12px 16px;
    }

    .pass.google-layout .pass-body .card-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pass.google-layout .pass-body .field {
        padding: 6px 0;
    }

    .pass.google-layout .pass-footer {
        padding: 16px;
    }
}

/* Animaciones sutiles */
.pass.google-layout {
    animation: slideInFromTop 0.3s ease-out;
}

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

/* Efectos de hover sutiles para Google Material */
.pass.google-layout:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.15), 0 2px 6px rgba(0,0,0,.1);
    transition: all 0.2s ease;
}
